AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ErrorCause.h
1
6#pragma once
7#include <aws/healthlake/HealthLake_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/healthlake/model/ErrorCategory.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace HealthLake
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_HEALTHLAKE_API ErrorCause();
37 AWS_HEALTHLAKE_API ErrorCause(Aws::Utils::Json::JsonView jsonValue);
38 AWS_HEALTHLAKE_API ErrorCause& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_HEALTHLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
47 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
48 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
49 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
50 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
51 inline ErrorCause& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
52 inline ErrorCause& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
53 inline ErrorCause& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
55
57
61 inline const ErrorCategory& GetErrorCategory() const{ return m_errorCategory; }
62 inline bool ErrorCategoryHasBeenSet() const { return m_errorCategoryHasBeenSet; }
63 inline void SetErrorCategory(const ErrorCategory& value) { m_errorCategoryHasBeenSet = true; m_errorCategory = value; }
64 inline void SetErrorCategory(ErrorCategory&& value) { m_errorCategoryHasBeenSet = true; m_errorCategory = std::move(value); }
65 inline ErrorCause& WithErrorCategory(const ErrorCategory& value) { SetErrorCategory(value); return *this;}
66 inline ErrorCause& WithErrorCategory(ErrorCategory&& value) { SetErrorCategory(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_errorMessage;
71 bool m_errorMessageHasBeenSet = false;
72
73 ErrorCategory m_errorCategory;
74 bool m_errorCategoryHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace HealthLake
79} // namespace Aws
ErrorCause & WithErrorCategory(const ErrorCategory &value)
Definition ErrorCause.h:65
void SetErrorMessage(const Aws::String &value)
Definition ErrorCause.h:48
AWS_HEALTHLAKE_API ErrorCause()
ErrorCause & WithErrorMessage(Aws::String &&value)
Definition ErrorCause.h:52
const ErrorCategory & GetErrorCategory() const
Definition ErrorCause.h:61
void SetErrorMessage(Aws::String &&value)
Definition ErrorCause.h:49
void SetErrorCategory(const ErrorCategory &value)
Definition ErrorCause.h:63
void SetErrorMessage(const char *value)
Definition ErrorCause.h:50
ErrorCause & WithErrorMessage(const Aws::String &value)
Definition ErrorCause.h:51
AWS_HEALTHLAKE_API ErrorCause & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_HEALTHLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetErrorMessage() const
Definition ErrorCause.h:46
ErrorCause & WithErrorMessage(const char *value)
Definition ErrorCause.h:53
AWS_HEALTHLAKE_API ErrorCause(Aws::Utils::Json::JsonView jsonValue)
ErrorCause & WithErrorCategory(ErrorCategory &&value)
Definition ErrorCause.h:66
void SetErrorCategory(ErrorCategory &&value)
Definition ErrorCause.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue