AWS SDK for C++  1.9.160
AWS SDK for C++
FailureInfo.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ResourceGroupsTaggingAPI
23 {
24 namespace Model
25 {
26 
55  {
56  public:
61 
62 
66  inline int GetStatusCode() const{ return m_statusCode; }
67 
71  inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
72 
76  inline void SetStatusCode(int value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
77 
81  inline FailureInfo& WithStatusCode(int value) { SetStatusCode(value); return *this;}
82 
83 
90  inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
91 
98  inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
99 
106  inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
107 
114  inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
115 
122  inline FailureInfo& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
123 
130  inline FailureInfo& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
131 
132 
136  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
137 
141  inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
142 
146  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
147 
151  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
152 
156  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
157 
161  inline FailureInfo& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
162 
166  inline FailureInfo& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
167 
171  inline FailureInfo& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
172 
173  private:
174 
175  int m_statusCode;
176  bool m_statusCodeHasBeenSet;
177 
178  ErrorCode m_errorCode;
179  bool m_errorCodeHasBeenSet;
180 
181  Aws::String m_errorMessage;
182  bool m_errorMessageHasBeenSet;
183  };
184 
185 } // namespace Model
186 } // namespace ResourceGroupsTaggingAPI
187 } // namespace Aws
Aws::ResourceGroupsTaggingAPI::Model::ErrorCode
ErrorCode
Definition: ErrorCode.h:17
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::WithErrorCode
FailureInfo & WithErrorCode(const ErrorCode &value)
Definition: FailureInfo.h:122
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::SetErrorMessage
void SetErrorMessage(const char *value)
Definition: FailureInfo.h:156
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::WithStatusCode
FailureInfo & WithStatusCode(int value)
Definition: FailureInfo.h:81
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::GetStatusCode
int GetStatusCode() const
Definition: FailureInfo.h:66
AWS_RESOURCEGROUPSTAGGINGAPI_API
#define AWS_RESOURCEGROUPSTAGGINGAPI_API
Definition: ResourceGroupsTaggingAPI_EXPORTS.h:28
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::SetErrorMessage
void SetErrorMessage(Aws::String &&value)
Definition: FailureInfo.h:151
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::GetErrorMessage
const Aws::String & GetErrorMessage() const
Definition: FailureInfo.h:136
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::FailureInfo
FailureInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo
Definition: FailureInfo.h:55
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::WithErrorMessage
FailureInfo & WithErrorMessage(const char *value)
Definition: FailureInfo.h:171
ErrorCode.h
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::SetErrorMessage
void SetErrorMessage(const Aws::String &value)
Definition: FailureInfo.h:146
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::FailureInfo
FailureInfo()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::ErrorMessageHasBeenSet
bool ErrorMessageHasBeenSet() const
Definition: FailureInfo.h:141
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: FailureInfo.h:98
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::WithErrorMessage
FailureInfo & WithErrorMessage(Aws::String &&value)
Definition: FailureInfo.h:166
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::GetErrorCode
const ErrorCode & GetErrorCode() const
Definition: FailureInfo.h:90
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::SetStatusCode
void SetStatusCode(int value)
Definition: FailureInfo.h:76
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::SetErrorCode
void SetErrorCode(ErrorCode &&value)
Definition: FailureInfo.h:114
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::StatusCodeHasBeenSet
bool StatusCodeHasBeenSet() const
Definition: FailureInfo.h:71
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::SetErrorCode
void SetErrorCode(const ErrorCode &value)
Definition: FailureInfo.h:106
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::WithErrorMessage
FailureInfo & WithErrorMessage(const Aws::String &value)
Definition: FailureInfo.h:161
ResourceGroupsTaggingAPI_EXPORTS.h
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::operator=
FailureInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ResourceGroupsTaggingAPI::Model::FailureInfo::WithErrorCode
FailureInfo & WithErrorCode(ErrorCode &&value)
Definition: FailureInfo.h:130