AWS SDK for C++  1.9.154
AWS SDK for C++
Resource.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ram/RAM_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace RAM
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetArn() const{ return m_arn; }
47 
51  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 
56  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
57 
61  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
62 
66  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
67 
71  inline Resource& WithArn(const Aws::String& value) { SetArn(value); return *this;}
72 
76  inline Resource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
77 
81  inline Resource& WithArn(const char* value) { SetArn(value); return *this;}
82 
83 
87  inline const Aws::String& GetType() const{ return m_type; }
88 
92  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
93 
97  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
98 
102  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
103 
107  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
108 
112  inline Resource& WithType(const Aws::String& value) { SetType(value); return *this;}
113 
117  inline Resource& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
118 
122  inline Resource& WithType(const char* value) { SetType(value); return *this;}
123 
124 
128  inline const Aws::String& GetResourceShareArn() const{ return m_resourceShareArn; }
129 
133  inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
134 
138  inline void SetResourceShareArn(const Aws::String& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = value; }
139 
143  inline void SetResourceShareArn(Aws::String&& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = std::move(value); }
144 
148  inline void SetResourceShareArn(const char* value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn.assign(value); }
149 
153  inline Resource& WithResourceShareArn(const Aws::String& value) { SetResourceShareArn(value); return *this;}
154 
158  inline Resource& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;}
159 
163  inline Resource& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;}
164 
165 
170  inline const Aws::String& GetResourceGroupArn() const{ return m_resourceGroupArn; }
171 
176  inline bool ResourceGroupArnHasBeenSet() const { return m_resourceGroupArnHasBeenSet; }
177 
182  inline void SetResourceGroupArn(const Aws::String& value) { m_resourceGroupArnHasBeenSet = true; m_resourceGroupArn = value; }
183 
188  inline void SetResourceGroupArn(Aws::String&& value) { m_resourceGroupArnHasBeenSet = true; m_resourceGroupArn = std::move(value); }
189 
194  inline void SetResourceGroupArn(const char* value) { m_resourceGroupArnHasBeenSet = true; m_resourceGroupArn.assign(value); }
195 
200  inline Resource& WithResourceGroupArn(const Aws::String& value) { SetResourceGroupArn(value); return *this;}
201 
206  inline Resource& WithResourceGroupArn(Aws::String&& value) { SetResourceGroupArn(std::move(value)); return *this;}
207 
212  inline Resource& WithResourceGroupArn(const char* value) { SetResourceGroupArn(value); return *this;}
213 
214 
218  inline const ResourceStatus& GetStatus() const{ return m_status; }
219 
223  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
224 
228  inline void SetStatus(const ResourceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
229 
233  inline void SetStatus(ResourceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
234 
238  inline Resource& WithStatus(const ResourceStatus& value) { SetStatus(value); return *this;}
239 
243  inline Resource& WithStatus(ResourceStatus&& value) { SetStatus(std::move(value)); return *this;}
244 
245 
249  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
250 
254  inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
255 
259  inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
260 
264  inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
265 
269  inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
270 
274  inline Resource& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
275 
279  inline Resource& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
280 
284  inline Resource& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
285 
286 
290  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
291 
295  inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
296 
300  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
301 
305  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
306 
310  inline Resource& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
311 
315  inline Resource& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
316 
317 
321  inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
322 
326  inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
327 
331  inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
332 
336  inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
337 
341  inline Resource& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
342 
346  inline Resource& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
347 
348  private:
349 
350  Aws::String m_arn;
351  bool m_arnHasBeenSet;
352 
353  Aws::String m_type;
354  bool m_typeHasBeenSet;
355 
356  Aws::String m_resourceShareArn;
357  bool m_resourceShareArnHasBeenSet;
358 
359  Aws::String m_resourceGroupArn;
360  bool m_resourceGroupArnHasBeenSet;
361 
362  ResourceStatus m_status;
363  bool m_statusHasBeenSet;
364 
365  Aws::String m_statusMessage;
366  bool m_statusMessageHasBeenSet;
367 
368  Aws::Utils::DateTime m_creationTime;
369  bool m_creationTimeHasBeenSet;
370 
371  Aws::Utils::DateTime m_lastUpdatedTime;
372  bool m_lastUpdatedTimeHasBeenSet;
373  };
374 
375 } // namespace Model
376 } // namespace RAM
377 } // namespace Aws
Aws::RAM::Model::Resource::SetStatus
void SetStatus(const ResourceStatus &value)
Definition: Resource.h:228
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::RAM::Model::Resource::SetResourceGroupArn
void SetResourceGroupArn(const char *value)
Definition: Resource.h:194
Aws::RAM::Model::Resource
Definition: Resource.h:35
Aws::RAM::Model::Resource::SetArn
void SetArn(Aws::String &&value)
Definition: Resource.h:61
Aws::RAM::Model::Resource::WithStatus
Resource & WithStatus(const ResourceStatus &value)
Definition: Resource.h:238
Aws::RAM::Model::Resource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::RAM::Model::Resource::WithType
Resource & WithType(const char *value)
Definition: Resource.h:122
Aws::RAM::Model::Resource::SetStatusMessage
void SetStatusMessage(const char *value)
Definition: Resource.h:269
Aws::RAM::Model::Resource::ResourceGroupArnHasBeenSet
bool ResourceGroupArnHasBeenSet() const
Definition: Resource.h:176
DateTime.h
Aws::RAM::Model::Resource::WithArn
Resource & WithArn(const Aws::String &value)
Definition: Resource.h:71
Aws::RAM::Model::Resource::GetResourceShareArn
const Aws::String & GetResourceShareArn() const
Definition: Resource.h:128
Aws::RAM::Model::Resource::LastUpdatedTimeHasBeenSet
bool LastUpdatedTimeHasBeenSet() const
Definition: Resource.h:326
Aws::RAM::Model::Resource::SetCreationTime
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition: Resource.h:300
Aws::RAM::Model::Resource::GetLastUpdatedTime
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition: Resource.h:321
Aws::RAM::Model::Resource::Resource
Resource(Aws::Utils::Json::JsonView jsonValue)
Aws::RAM::Model::Resource::operator=
Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceStatus.h
Aws::RAM::Model::Resource::WithStatusMessage
Resource & WithStatusMessage(const char *value)
Definition: Resource.h:284
Aws::RAM::Model::Resource::SetStatus
void SetStatus(ResourceStatus &&value)
Definition: Resource.h:233
Aws::RAM::Model::Resource::GetType
const Aws::String & GetType() const
Definition: Resource.h:87
Aws::RAM::Model::Resource::SetResourceShareArn
void SetResourceShareArn(const Aws::String &value)
Definition: Resource.h:138
Aws::RAM::Model::Resource::WithResourceShareArn
Resource & WithResourceShareArn(const Aws::String &value)
Definition: Resource.h:153
Aws::RAM::Model::Resource::SetStatusMessage
void SetStatusMessage(const Aws::String &value)
Definition: Resource.h:259
Aws::RAM::Model::Resource::WithCreationTime
Resource & WithCreationTime(const Aws::Utils::DateTime &value)
Definition: Resource.h:310
Aws::RAM::Model::Resource::GetStatusMessage
const Aws::String & GetStatusMessage() const
Definition: Resource.h:249
Aws::RAM::Model::Resource::SetType
void SetType(const Aws::String &value)
Definition: Resource.h:97
Aws::RAM::Model::Resource::GetCreationTime
const Aws::Utils::DateTime & GetCreationTime() const
Definition: Resource.h:290
Aws::RAM::Model::Resource::WithResourceGroupArn
Resource & WithResourceGroupArn(Aws::String &&value)
Definition: Resource.h:206
Aws::RAM::Model::Resource::SetCreationTime
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition: Resource.h:305
Aws::RAM::Model::Resource::SetResourceGroupArn
void SetResourceGroupArn(const Aws::String &value)
Definition: Resource.h:182
Aws::RAM::Model::Resource::CreationTimeHasBeenSet
bool CreationTimeHasBeenSet() const
Definition: Resource.h:295
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
RAM_EXPORTS.h
Aws::RAM::Model::Resource::Resource
Resource()
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::RAM::Model::Resource::SetResourceShareArn
void SetResourceShareArn(Aws::String &&value)
Definition: Resource.h:143
Aws::RAM::Model::Resource::WithStatusMessage
Resource & WithStatusMessage(const Aws::String &value)
Definition: Resource.h:274
Aws::RAM::Model::Resource::WithCreationTime
Resource & WithCreationTime(Aws::Utils::DateTime &&value)
Definition: Resource.h:315
Aws::RAM::Model::Resource::WithArn
Resource & WithArn(Aws::String &&value)
Definition: Resource.h:76
Aws::RAM::Model::Resource::GetStatus
const ResourceStatus & GetStatus() const
Definition: Resource.h:218
Aws::RAM::Model::Resource::SetLastUpdatedTime
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition: Resource.h:331
Aws::RAM::Model::Resource::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Resource.h:51
Aws::RAM::Model::Resource::GetArn
const Aws::String & GetArn() const
Definition: Resource.h:46
Aws::RAM::Model::Resource::SetType
void SetType(const char *value)
Definition: Resource.h:107
AWS_RAM_API
#define AWS_RAM_API
Definition: RAM_EXPORTS.h:28
Aws::RAM::Model::Resource::SetType
void SetType(Aws::String &&value)
Definition: Resource.h:102
Aws::RAM::Model::Resource::WithResourceShareArn
Resource & WithResourceShareArn(Aws::String &&value)
Definition: Resource.h:158
Aws::RAM::Model::Resource::StatusMessageHasBeenSet
bool StatusMessageHasBeenSet() const
Definition: Resource.h:254
Aws::RAM::Model::Resource::SetArn
void SetArn(const Aws::String &value)
Definition: Resource.h:56
Aws::RAM::Model::Resource::ResourceShareArnHasBeenSet
bool ResourceShareArnHasBeenSet() const
Definition: Resource.h:133
Aws::RAM::Model::Resource::WithType
Resource & WithType(Aws::String &&value)
Definition: Resource.h:117
Aws::RAM::Model::Resource::WithArn
Resource & WithArn(const char *value)
Definition: Resource.h:81
Aws::RAM::Model::Resource::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Resource.h:92
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::RAM::Model::Resource::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Resource.h:223
Aws::RAM::Model::Resource::WithResourceGroupArn
Resource & WithResourceGroupArn(const char *value)
Definition: Resource.h:212
Aws::RAM::Model::Resource::GetResourceGroupArn
const Aws::String & GetResourceGroupArn() const
Definition: Resource.h:170
Aws::RAM::Model::Resource::WithResourceShareArn
Resource & WithResourceShareArn(const char *value)
Definition: Resource.h:163
Aws::RAM::Model::Resource::WithStatus
Resource & WithStatus(ResourceStatus &&value)
Definition: Resource.h:243
Aws::RAM::Model::Resource::WithLastUpdatedTime
Resource & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition: Resource.h:341
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RAM::Model::Resource::SetStatusMessage
void SetStatusMessage(Aws::String &&value)
Definition: Resource.h:264
Aws::RAM::Model::Resource::SetLastUpdatedTime
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition: Resource.h:336
Aws::RAM::Model::Resource::SetResourceShareArn
void SetResourceShareArn(const char *value)
Definition: Resource.h:148
Aws::RAM::Model::Resource::WithType
Resource & WithType(const Aws::String &value)
Definition: Resource.h:112
Aws::RAM::Model::Resource::WithLastUpdatedTime
Resource & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition: Resource.h:346
Aws::RAM::Model::Resource::SetResourceGroupArn
void SetResourceGroupArn(Aws::String &&value)
Definition: Resource.h:188
Aws::RAM::Model::Resource::WithStatusMessage
Resource & WithStatusMessage(Aws::String &&value)
Definition: Resource.h:279
Aws::RAM::Model::Resource::WithResourceGroupArn
Resource & WithResourceGroupArn(const Aws::String &value)
Definition: Resource.h:200
Aws::RAM::Model::ResourceStatus
ResourceStatus
Definition: ResourceStatus.h:17
Aws::RAM::Model::Resource::SetArn
void SetArn(const char *value)
Definition: Resource.h:66