AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceMetadata.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppMesh
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPMESH_API ResourceMetadata();
37 AWS_APPMESH_API ResourceMetadata(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetArn() const{ return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
49 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
50 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
51 inline ResourceMetadata& WithArn(const Aws::String& value) { SetArn(value); return *this;}
52 inline ResourceMetadata& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
53 inline ResourceMetadata& WithArn(const char* value) { SetArn(value); return *this;}
55
57
60 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
61 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
62 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
63 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
64 inline ResourceMetadata& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
65 inline ResourceMetadata& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
67
69
73 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
74 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
75 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
76 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
77 inline ResourceMetadata& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
78 inline ResourceMetadata& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
80
82
89 inline const Aws::String& GetMeshOwner() const{ return m_meshOwner; }
90 inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
91 inline void SetMeshOwner(const Aws::String& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = value; }
92 inline void SetMeshOwner(Aws::String&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::move(value); }
93 inline void SetMeshOwner(const char* value) { m_meshOwnerHasBeenSet = true; m_meshOwner.assign(value); }
94 inline ResourceMetadata& WithMeshOwner(const Aws::String& value) { SetMeshOwner(value); return *this;}
95 inline ResourceMetadata& WithMeshOwner(Aws::String&& value) { SetMeshOwner(std::move(value)); return *this;}
96 inline ResourceMetadata& WithMeshOwner(const char* value) { SetMeshOwner(value); return *this;}
98
100
107 inline const Aws::String& GetResourceOwner() const{ return m_resourceOwner; }
108 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
109 inline void SetResourceOwner(const Aws::String& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; }
110 inline void SetResourceOwner(Aws::String&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::move(value); }
111 inline void SetResourceOwner(const char* value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner.assign(value); }
112 inline ResourceMetadata& WithResourceOwner(const Aws::String& value) { SetResourceOwner(value); return *this;}
113 inline ResourceMetadata& WithResourceOwner(Aws::String&& value) { SetResourceOwner(std::move(value)); return *this;}
114 inline ResourceMetadata& WithResourceOwner(const char* value) { SetResourceOwner(value); return *this;}
116
118
121 inline const Aws::String& GetUid() const{ return m_uid; }
122 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
123 inline void SetUid(const Aws::String& value) { m_uidHasBeenSet = true; m_uid = value; }
124 inline void SetUid(Aws::String&& value) { m_uidHasBeenSet = true; m_uid = std::move(value); }
125 inline void SetUid(const char* value) { m_uidHasBeenSet = true; m_uid.assign(value); }
126 inline ResourceMetadata& WithUid(const Aws::String& value) { SetUid(value); return *this;}
127 inline ResourceMetadata& WithUid(Aws::String&& value) { SetUid(std::move(value)); return *this;}
128 inline ResourceMetadata& WithUid(const char* value) { SetUid(value); return *this;}
130
132
136 inline long long GetVersion() const{ return m_version; }
137 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
138 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
139 inline ResourceMetadata& WithVersion(long long value) { SetVersion(value); return *this;}
141 private:
142
143 Aws::String m_arn;
144 bool m_arnHasBeenSet = false;
145
146 Aws::Utils::DateTime m_createdAt;
147 bool m_createdAtHasBeenSet = false;
148
149 Aws::Utils::DateTime m_lastUpdatedAt;
150 bool m_lastUpdatedAtHasBeenSet = false;
151
152 Aws::String m_meshOwner;
153 bool m_meshOwnerHasBeenSet = false;
154
155 Aws::String m_resourceOwner;
156 bool m_resourceOwnerHasBeenSet = false;
157
158 Aws::String m_uid;
159 bool m_uidHasBeenSet = false;
160
161 long long m_version;
162 bool m_versionHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace AppMesh
167} // namespace Aws
void SetUid(const Aws::String &value)
ResourceMetadata & WithResourceOwner(const Aws::String &value)
void SetMeshOwner(const Aws::String &value)
ResourceMetadata & WithUid(const Aws::String &value)
const Aws::String & GetUid() const
ResourceMetadata & WithMeshOwner(const char *value)
AWS_APPMESH_API ResourceMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMeshOwner(Aws::String &&value)
void SetArn(const Aws::String &value)
ResourceMetadata & WithCreatedAt(const Aws::Utils::DateTime &value)
ResourceMetadata & WithArn(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
ResourceMetadata & WithArn(Aws::String &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
ResourceMetadata & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
ResourceMetadata & WithCreatedAt(Aws::Utils::DateTime &&value)
ResourceMetadata & WithArn(const char *value)
const Aws::String & GetResourceOwner() const
void SetResourceOwner(const Aws::String &value)
ResourceMetadata & WithUid(const char *value)
ResourceMetadata & WithResourceOwner(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetArn() const
void SetCreatedAt(const Aws::Utils::DateTime &value)
ResourceMetadata & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetMeshOwner() const
ResourceMetadata & WithVersion(long long value)
ResourceMetadata & WithUid(Aws::String &&value)
ResourceMetadata & WithResourceOwner(const char *value)
ResourceMetadata & WithMeshOwner(const Aws::String &value)
ResourceMetadata & WithMeshOwner(Aws::String &&value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceOwner(Aws::String &&value)
AWS_APPMESH_API ResourceMetadata(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue