AWS SDK for C++  1.9.17
AWS SDK for C++
ResourceMetadata.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 AppMesh
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetArn() const{ return m_arn; }
46 
50  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 
55  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
56 
60  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
61 
65  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
66 
70  inline ResourceMetadata& WithArn(const Aws::String& value) { SetArn(value); return *this;}
71 
75  inline ResourceMetadata& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
76 
80  inline ResourceMetadata& WithArn(const char* value) { SetArn(value); return *this;}
81 
82 
86  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
87 
91  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
92 
96  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
97 
101  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
102 
106  inline ResourceMetadata& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
107 
111  inline ResourceMetadata& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
112 
113 
118  inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
119 
124  inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
125 
130  inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
131 
136  inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
137 
142  inline ResourceMetadata& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
143 
148  inline ResourceMetadata& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
149 
150 
158  inline const Aws::String& GetMeshOwner() const{ return m_meshOwner; }
159 
167  inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
168 
176  inline void SetMeshOwner(const Aws::String& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = value; }
177 
185  inline void SetMeshOwner(Aws::String&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::move(value); }
186 
194  inline void SetMeshOwner(const char* value) { m_meshOwnerHasBeenSet = true; m_meshOwner.assign(value); }
195 
203  inline ResourceMetadata& WithMeshOwner(const Aws::String& value) { SetMeshOwner(value); return *this;}
204 
212  inline ResourceMetadata& WithMeshOwner(Aws::String&& value) { SetMeshOwner(std::move(value)); return *this;}
213 
221  inline ResourceMetadata& WithMeshOwner(const char* value) { SetMeshOwner(value); return *this;}
222 
223 
231  inline const Aws::String& GetResourceOwner() const{ return m_resourceOwner; }
232 
240  inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
241 
249  inline void SetResourceOwner(const Aws::String& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; }
250 
258  inline void SetResourceOwner(Aws::String&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::move(value); }
259 
267  inline void SetResourceOwner(const char* value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner.assign(value); }
268 
276  inline ResourceMetadata& WithResourceOwner(const Aws::String& value) { SetResourceOwner(value); return *this;}
277 
285  inline ResourceMetadata& WithResourceOwner(Aws::String&& value) { SetResourceOwner(std::move(value)); return *this;}
286 
294  inline ResourceMetadata& WithResourceOwner(const char* value) { SetResourceOwner(value); return *this;}
295 
296 
300  inline const Aws::String& GetUid() const{ return m_uid; }
301 
305  inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
306 
310  inline void SetUid(const Aws::String& value) { m_uidHasBeenSet = true; m_uid = value; }
311 
315  inline void SetUid(Aws::String&& value) { m_uidHasBeenSet = true; m_uid = std::move(value); }
316 
320  inline void SetUid(const char* value) { m_uidHasBeenSet = true; m_uid.assign(value); }
321 
325  inline ResourceMetadata& WithUid(const Aws::String& value) { SetUid(value); return *this;}
326 
330  inline ResourceMetadata& WithUid(Aws::String&& value) { SetUid(std::move(value)); return *this;}
331 
335  inline ResourceMetadata& WithUid(const char* value) { SetUid(value); return *this;}
336 
337 
342  inline long long GetVersion() const{ return m_version; }
343 
348  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
349 
354  inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
355 
360  inline ResourceMetadata& WithVersion(long long value) { SetVersion(value); return *this;}
361 
362  private:
363 
364  Aws::String m_arn;
365  bool m_arnHasBeenSet;
366 
367  Aws::Utils::DateTime m_createdAt;
368  bool m_createdAtHasBeenSet;
369 
370  Aws::Utils::DateTime m_lastUpdatedAt;
371  bool m_lastUpdatedAtHasBeenSet;
372 
373  Aws::String m_meshOwner;
374  bool m_meshOwnerHasBeenSet;
375 
376  Aws::String m_resourceOwner;
377  bool m_resourceOwnerHasBeenSet;
378 
379  Aws::String m_uid;
380  bool m_uidHasBeenSet;
381 
382  long long m_version;
383  bool m_versionHasBeenSet;
384  };
385 
386 } // namespace Model
387 } // namespace AppMesh
388 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::AppMesh::Model::ResourceMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::ResourceMetadata::SetUid
void SetUid(const char *value)
Definition: ResourceMetadata.h:320
Aws::AppMesh::Model::ResourceMetadata::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: ResourceMetadata.h:86
Aws::AppMesh::Model::ResourceMetadata::SetMeshOwner
void SetMeshOwner(const char *value)
Definition: ResourceMetadata.h:194
Aws::AppMesh::Model::ResourceMetadata::SetArn
void SetArn(const char *value)
Definition: ResourceMetadata.h:65
Aws::AppMesh::Model::ResourceMetadata::WithUid
ResourceMetadata & WithUid(const Aws::String &value)
Definition: ResourceMetadata.h:325
Aws::AppMesh::Model::ResourceMetadata::ResourceMetadata
ResourceMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::ResourceMetadata::LastUpdatedAtHasBeenSet
bool LastUpdatedAtHasBeenSet() const
Definition: ResourceMetadata.h:124
Aws::AppMesh::Model::ResourceMetadata::WithArn
ResourceMetadata & WithArn(const char *value)
Definition: ResourceMetadata.h:80
DateTime.h
Aws::AppMesh::Model::ResourceMetadata::WithUid
ResourceMetadata & WithUid(Aws::String &&value)
Definition: ResourceMetadata.h:330
Aws::AppMesh::Model::ResourceMetadata::GetMeshOwner
const Aws::String & GetMeshOwner() const
Definition: ResourceMetadata.h:158
Aws::AppMesh::Model::ResourceMetadata::SetVersion
void SetVersion(long long value)
Definition: ResourceMetadata.h:354
Aws::AppMesh::Model::ResourceMetadata::ResourceMetadata
ResourceMetadata()
Aws::AppMesh::Model::ResourceMetadata::MeshOwnerHasBeenSet
bool MeshOwnerHasBeenSet() const
Definition: ResourceMetadata.h:167
Aws::AppMesh::Model::ResourceMetadata::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: ResourceMetadata.h:101
Aws::AppMesh::Model::ResourceMetadata::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: ResourceMetadata.h:50
Aws::AppMesh::Model::ResourceMetadata
Definition: ResourceMetadata.h:34
Aws::AppMesh::Model::ResourceMetadata::WithMeshOwner
ResourceMetadata & WithMeshOwner(const Aws::String &value)
Definition: ResourceMetadata.h:203
AppMesh_EXPORTS.h
Aws::AppMesh::Model::ResourceMetadata::SetArn
void SetArn(const Aws::String &value)
Definition: ResourceMetadata.h:55
Aws::AppMesh::Model::ResourceMetadata::ResourceOwnerHasBeenSet
bool ResourceOwnerHasBeenSet() const
Definition: ResourceMetadata.h:240
Aws::AppMesh::Model::ResourceMetadata::WithCreatedAt
ResourceMetadata & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: ResourceMetadata.h:106
Aws::AppMesh::Model::ResourceMetadata::operator=
ResourceMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::ResourceMetadata::GetLastUpdatedAt
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition: ResourceMetadata.h:118
Aws::AppMesh::Model::ResourceMetadata::WithResourceOwner
ResourceMetadata & WithResourceOwner(Aws::String &&value)
Definition: ResourceMetadata.h:285
Aws::AppMesh::Model::ResourceMetadata::SetLastUpdatedAt
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: ResourceMetadata.h:130
Aws::AppMesh::Model::ResourceMetadata::SetLastUpdatedAt
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: ResourceMetadata.h:136
Aws::AppMesh::Model::ResourceMetadata::WithResourceOwner
ResourceMetadata & WithResourceOwner(const char *value)
Definition: ResourceMetadata.h:294
Aws::AppMesh::Model::ResourceMetadata::WithCreatedAt
ResourceMetadata & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: ResourceMetadata.h:111
Aws::AppMesh::Model::ResourceMetadata::WithLastUpdatedAt
ResourceMetadata & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: ResourceMetadata.h:148
Aws::AppMesh::Model::ResourceMetadata::UidHasBeenSet
bool UidHasBeenSet() const
Definition: ResourceMetadata.h:305
Aws::AppMesh::Model::ResourceMetadata::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: ResourceMetadata.h:348
Aws::AppMesh::Model::ResourceMetadata::WithMeshOwner
ResourceMetadata & WithMeshOwner(const char *value)
Definition: ResourceMetadata.h:221
Aws::AppMesh::Model::ResourceMetadata::SetUid
void SetUid(const Aws::String &value)
Definition: ResourceMetadata.h:310
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::ResourceMetadata::WithVersion
ResourceMetadata & WithVersion(long long value)
Definition: ResourceMetadata.h:360
Aws::AppMesh::Model::ResourceMetadata::WithUid
ResourceMetadata & WithUid(const char *value)
Definition: ResourceMetadata.h:335
Aws::AppMesh::Model::ResourceMetadata::WithLastUpdatedAt
ResourceMetadata & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: ResourceMetadata.h:142
Aws::AppMesh::Model::ResourceMetadata::WithArn
ResourceMetadata & WithArn(const Aws::String &value)
Definition: ResourceMetadata.h:70
Aws::AppMesh::Model::ResourceMetadata::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: ResourceMetadata.h:96
Aws::AppMesh::Model::ResourceMetadata::SetResourceOwner
void SetResourceOwner(const char *value)
Definition: ResourceMetadata.h:267
Aws::AppMesh::Model::ResourceMetadata::SetResourceOwner
void SetResourceOwner(const Aws::String &value)
Definition: ResourceMetadata.h:249
Aws::AppMesh::Model::ResourceMetadata::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: ResourceMetadata.h:91
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::ResourceMetadata::WithMeshOwner
ResourceMetadata & WithMeshOwner(Aws::String &&value)
Definition: ResourceMetadata.h:212
Aws::AppMesh::Model::ResourceMetadata::SetMeshOwner
void SetMeshOwner(const Aws::String &value)
Definition: ResourceMetadata.h:176
Aws::AppMesh::Model::ResourceMetadata::GetUid
const Aws::String & GetUid() const
Definition: ResourceMetadata.h:300
Aws::AppMesh::Model::ResourceMetadata::GetArn
const Aws::String & GetArn() const
Definition: ResourceMetadata.h:45
Aws::AppMesh::Model::ResourceMetadata::SetArn
void SetArn(Aws::String &&value)
Definition: ResourceMetadata.h:60
Aws::AppMesh::Model::ResourceMetadata::WithResourceOwner
ResourceMetadata & WithResourceOwner(const Aws::String &value)
Definition: ResourceMetadata.h:276
Aws::AppMesh::Model::ResourceMetadata::WithArn
ResourceMetadata & WithArn(Aws::String &&value)
Definition: ResourceMetadata.h:75
Aws::AppMesh::Model::ResourceMetadata::SetUid
void SetUid(Aws::String &&value)
Definition: ResourceMetadata.h:315
Aws::AppMesh::Model::ResourceMetadata::GetResourceOwner
const Aws::String & GetResourceOwner() const
Definition: ResourceMetadata.h:231
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::ResourceMetadata::GetVersion
long long GetVersion() const
Definition: ResourceMetadata.h:342
Aws::AppMesh::Model::ResourceMetadata::SetResourceOwner
void SetResourceOwner(Aws::String &&value)
Definition: ResourceMetadata.h:258
Aws::AppMesh::Model::ResourceMetadata::SetMeshOwner
void SetMeshOwner(Aws::String &&value)
Definition: ResourceMetadata.h:185