AWS SDK for C++  1.9.104
AWS SDK for C++
ErrorDetails.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ElasticsearchService
22 {
23 namespace Model
24 {
25 
27  {
28  public:
33 
34 
35 
36  inline const Aws::String& GetErrorType() const{ return m_errorType; }
37 
38 
39  inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
40 
41 
42  inline void SetErrorType(const Aws::String& value) { m_errorTypeHasBeenSet = true; m_errorType = value; }
43 
44 
45  inline void SetErrorType(Aws::String&& value) { m_errorTypeHasBeenSet = true; m_errorType = std::move(value); }
46 
47 
48  inline void SetErrorType(const char* value) { m_errorTypeHasBeenSet = true; m_errorType.assign(value); }
49 
50 
51  inline ErrorDetails& WithErrorType(const Aws::String& value) { SetErrorType(value); return *this;}
52 
53 
54  inline ErrorDetails& WithErrorType(Aws::String&& value) { SetErrorType(std::move(value)); return *this;}
55 
56 
57  inline ErrorDetails& WithErrorType(const char* value) { SetErrorType(value); return *this;}
58 
59 
60 
61  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
62 
63 
64  inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
65 
66 
67  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
68 
69 
70  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
71 
72 
73  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
74 
75 
76  inline ErrorDetails& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
77 
78 
79  inline ErrorDetails& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
80 
81 
82  inline ErrorDetails& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
83 
84  private:
85 
86  Aws::String m_errorType;
87  bool m_errorTypeHasBeenSet;
88 
89  Aws::String m_errorMessage;
90  bool m_errorMessageHasBeenSet;
91  };
92 
93 } // namespace Model
94 } // namespace ElasticsearchService
95 } // namespace Aws
Aws::ElasticsearchService::Model::ErrorDetails::operator=
ErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::ErrorDetails::SetErrorMessage
void SetErrorMessage(Aws::String &&value)
Definition: ErrorDetails.h:70
Aws::ElasticsearchService::Model::ErrorDetails::WithErrorMessage
ErrorDetails & WithErrorMessage(const Aws::String &value)
Definition: ErrorDetails.h:76
Aws::ElasticsearchService::Model::ErrorDetails::WithErrorType
ErrorDetails & WithErrorType(Aws::String &&value)
Definition: ErrorDetails.h:54
Aws::ElasticsearchService::Model::ErrorDetails::ErrorDetails
ErrorDetails()
Aws::ElasticsearchService::Model::ErrorDetails::WithErrorMessage
ErrorDetails & WithErrorMessage(Aws::String &&value)
Definition: ErrorDetails.h:79
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::ErrorDetails::SetErrorType
void SetErrorType(const char *value)
Definition: ErrorDetails.h:48
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::ErrorDetails::SetErrorType
void SetErrorType(Aws::String &&value)
Definition: ErrorDetails.h:45
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::ErrorDetails::SetErrorMessage
void SetErrorMessage(const char *value)
Definition: ErrorDetails.h:73
Aws::ElasticsearchService::Model::ErrorDetails::WithErrorType
ErrorDetails & WithErrorType(const char *value)
Definition: ErrorDetails.h:57
Aws::ElasticsearchService::Model::ErrorDetails::WithErrorType
ErrorDetails & WithErrorType(const Aws::String &value)
Definition: ErrorDetails.h:51
Aws::ElasticsearchService::Model::ErrorDetails
Definition: ErrorDetails.h:27
Aws::ElasticsearchService::Model::ErrorDetails::SetErrorMessage
void SetErrorMessage(const Aws::String &value)
Definition: ErrorDetails.h:67
Aws::ElasticsearchService::Model::ErrorDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::ErrorDetails::SetErrorType
void SetErrorType(const Aws::String &value)
Definition: ErrorDetails.h:42
Aws::ElasticsearchService::Model::ErrorDetails::ErrorDetails
ErrorDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::ErrorDetails::GetErrorMessage
const Aws::String & GetErrorMessage() const
Definition: ErrorDetails.h:61
Aws::ElasticsearchService::Model::ErrorDetails::GetErrorType
const Aws::String & GetErrorType() const
Definition: ErrorDetails.h:36
Aws::ElasticsearchService::Model::ErrorDetails::ErrorTypeHasBeenSet
bool ErrorTypeHasBeenSet() const
Definition: ErrorDetails.h:39
Aws::ElasticsearchService::Model::ErrorDetails::WithErrorMessage
ErrorDetails & WithErrorMessage(const char *value)
Definition: ErrorDetails.h:82
Aws::ElasticsearchService::Model::ErrorDetails::ErrorMessageHasBeenSet
bool ErrorMessageHasBeenSet() const
Definition: ErrorDetails.h:64