AWS SDK for C++  1.9.106
AWS SDK for C++
FailedResource.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 ResourceGroups
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
45 
49  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
50 
54  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
55 
59  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
60 
64  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
65 
69  inline FailedResource& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
70 
74  inline FailedResource& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
75 
79  inline FailedResource& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
80 
81 
85  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
86 
90  inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
91 
95  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
96 
100  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
101 
105  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
106 
110  inline FailedResource& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
111 
115  inline FailedResource& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
116 
120  inline FailedResource& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
121 
122 
126  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
127 
131  inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
132 
136  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
137 
141  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
142 
146  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
147 
151  inline FailedResource& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
152 
156  inline FailedResource& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
157 
161  inline FailedResource& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
162 
163  private:
164 
165  Aws::String m_resourceArn;
166  bool m_resourceArnHasBeenSet;
167 
168  Aws::String m_errorMessage;
169  bool m_errorMessageHasBeenSet;
170 
171  Aws::String m_errorCode;
172  bool m_errorCodeHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace ResourceGroups
177 } // namespace Aws
Aws::ResourceGroups::Model::FailedResource::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: FailedResource.h:54
Aws::ResourceGroups::Model::FailedResource::WithErrorMessage
FailedResource & WithErrorMessage(const char *value)
Definition: FailedResource.h:120
Aws::ResourceGroups::Model::FailedResource::SetErrorMessage
void SetErrorMessage(const char *value)
Definition: FailedResource.h:105
Aws::ResourceGroups::Model::FailedResource::SetErrorCode
void SetErrorCode(const char *value)
Definition: FailedResource.h:146
Aws::ResourceGroups::Model::FailedResource::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: FailedResource.h:59
AWS_RESOURCEGROUPS_API
#define AWS_RESOURCEGROUPS_API
Definition: ResourceGroups_EXPORTS.h:28
Aws::ResourceGroups::Model::FailedResource::WithErrorCode
FailedResource & WithErrorCode(const char *value)
Definition: FailedResource.h:161
Aws::ResourceGroups::Model::FailedResource::WithErrorCode
FailedResource & WithErrorCode(Aws::String &&value)
Definition: FailedResource.h:156
Aws::ResourceGroups::Model::FailedResource::SetErrorCode
void SetErrorCode(Aws::String &&value)
Definition: FailedResource.h:141
Aws::ResourceGroups::Model::FailedResource::SetResourceArn
void SetResourceArn(const char *value)
Definition: FailedResource.h:64
Aws::ResourceGroups::Model::FailedResource::ErrorMessageHasBeenSet
bool ErrorMessageHasBeenSet() const
Definition: FailedResource.h:90
Aws::ResourceGroups::Model::FailedResource::operator=
FailedResource & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ResourceGroups::Model::FailedResource::WithErrorCode
FailedResource & WithErrorCode(const Aws::String &value)
Definition: FailedResource.h:151
Aws::ResourceGroups::Model::FailedResource::SetErrorMessage
void SetErrorMessage(Aws::String &&value)
Definition: FailedResource.h:100
Aws::ResourceGroups::Model::FailedResource::WithResourceArn
FailedResource & WithResourceArn(const char *value)
Definition: FailedResource.h:79
Aws::ResourceGroups::Model::FailedResource::WithErrorMessage
FailedResource & WithErrorMessage(const Aws::String &value)
Definition: FailedResource.h:110
Aws::ResourceGroups::Model::FailedResource::GetErrorCode
const Aws::String & GetErrorCode() const
Definition: FailedResource.h:126
Aws::ResourceGroups::Model::FailedResource::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: FailedResource.h:131
Aws::ResourceGroups::Model::FailedResource::SetErrorMessage
void SetErrorMessage(const Aws::String &value)
Definition: FailedResource.h:95
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ResourceGroups::Model::FailedResource::WithResourceArn
FailedResource & WithResourceArn(const Aws::String &value)
Definition: FailedResource.h:69
Aws::ResourceGroups::Model::FailedResource
Definition: FailedResource.h:33
Aws::ResourceGroups::Model::FailedResource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
ResourceGroups_EXPORTS.h
Aws::ResourceGroups::Model::FailedResource::FailedResource
FailedResource()
Aws::ResourceGroups::Model::FailedResource::SetErrorCode
void SetErrorCode(const Aws::String &value)
Definition: FailedResource.h:136
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ResourceGroups::Model::FailedResource::FailedResource
FailedResource(Aws::Utils::Json::JsonView jsonValue)
Aws::ResourceGroups::Model::FailedResource::GetErrorMessage
const Aws::String & GetErrorMessage() const
Definition: FailedResource.h:85
Aws::ResourceGroups::Model::FailedResource::WithErrorMessage
FailedResource & WithErrorMessage(Aws::String &&value)
Definition: FailedResource.h:115
Aws::ResourceGroups::Model::FailedResource::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: FailedResource.h:49
Aws::ResourceGroups::Model::FailedResource::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: FailedResource.h:44
Aws::ResourceGroups::Model::FailedResource::WithResourceArn
FailedResource & WithResourceArn(Aws::String &&value)
Definition: FailedResource.h:74