AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
MeshRef.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppMesh {
21namespace Model {
22
29class MeshRef {
30 public:
31 AWS_APPMESH_API MeshRef() = default;
32 AWS_APPMESH_API MeshRef(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMESH_API MeshRef& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
48 MeshRef& WithArn(ArnT&& value) {
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
59 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
60 template <typename CreatedAtT = Aws::Utils::DateTime>
61 void SetCreatedAt(CreatedAtT&& value) {
62 m_createdAtHasBeenSet = true;
63 m_createdAt = std::forward<CreatedAtT>(value);
64 }
65 template <typename CreatedAtT = Aws::Utils::DateTime>
66 MeshRef& WithCreatedAt(CreatedAtT&& value) {
67 SetCreatedAt(std::forward<CreatedAtT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
78 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
79 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
80 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
81 m_lastUpdatedAtHasBeenSet = true;
82 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
83 }
84 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
85 MeshRef& WithLastUpdatedAt(LastUpdatedAtT&& value) {
86 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetMeshName() const { return m_meshName; }
96 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
97 template <typename MeshNameT = Aws::String>
98 void SetMeshName(MeshNameT&& value) {
99 m_meshNameHasBeenSet = true;
100 m_meshName = std::forward<MeshNameT>(value);
101 }
102 template <typename MeshNameT = Aws::String>
103 MeshRef& WithMeshName(MeshNameT&& value) {
104 SetMeshName(std::forward<MeshNameT>(value));
105 return *this;
106 }
108
110
117 inline const Aws::String& GetMeshOwner() const { return m_meshOwner; }
118 inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
119 template <typename MeshOwnerT = Aws::String>
120 void SetMeshOwner(MeshOwnerT&& value) {
121 m_meshOwnerHasBeenSet = true;
122 m_meshOwner = std::forward<MeshOwnerT>(value);
123 }
124 template <typename MeshOwnerT = Aws::String>
125 MeshRef& WithMeshOwner(MeshOwnerT&& value) {
126 SetMeshOwner(std::forward<MeshOwnerT>(value));
127 return *this;
128 }
130
132
139 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
140 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
141 template <typename ResourceOwnerT = Aws::String>
142 void SetResourceOwner(ResourceOwnerT&& value) {
143 m_resourceOwnerHasBeenSet = true;
144 m_resourceOwner = std::forward<ResourceOwnerT>(value);
145 }
146 template <typename ResourceOwnerT = Aws::String>
147 MeshRef& WithResourceOwner(ResourceOwnerT&& value) {
148 SetResourceOwner(std::forward<ResourceOwnerT>(value));
149 return *this;
150 }
152
154
158 inline long long GetVersion() const { return m_version; }
159 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
160 inline void SetVersion(long long value) {
161 m_versionHasBeenSet = true;
162 m_version = value;
163 }
164 inline MeshRef& WithVersion(long long value) {
165 SetVersion(value);
166 return *this;
167 }
169 private:
170 Aws::String m_arn;
171
172 Aws::Utils::DateTime m_createdAt{};
173
174 Aws::Utils::DateTime m_lastUpdatedAt{};
175
176 Aws::String m_meshName;
177
178 Aws::String m_meshOwner;
179
180 Aws::String m_resourceOwner;
181
182 long long m_version{0};
183 bool m_arnHasBeenSet = false;
184 bool m_createdAtHasBeenSet = false;
185 bool m_lastUpdatedAtHasBeenSet = false;
186 bool m_meshNameHasBeenSet = false;
187 bool m_meshOwnerHasBeenSet = false;
188 bool m_resourceOwnerHasBeenSet = false;
189 bool m_versionHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace AppMesh
194} // namespace Aws
const Aws::String & GetArn() const
Definition MeshRef.h:40
void SetMeshOwner(MeshOwnerT &&value)
Definition MeshRef.h:120
MeshRef & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition MeshRef.h:85
void SetMeshName(MeshNameT &&value)
Definition MeshRef.h:98
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition MeshRef.h:80
MeshRef & WithVersion(long long value)
Definition MeshRef.h:164
const Aws::String & GetMeshName() const
Definition MeshRef.h:95
long long GetVersion() const
Definition MeshRef.h:158
AWS_APPMESH_API MeshRef(Aws::Utils::Json::JsonView jsonValue)
void SetResourceOwner(ResourceOwnerT &&value)
Definition MeshRef.h:142
MeshRef & WithResourceOwner(ResourceOwnerT &&value)
Definition MeshRef.h:147
bool LastUpdatedAtHasBeenSet() const
Definition MeshRef.h:78
MeshRef & WithCreatedAt(CreatedAtT &&value)
Definition MeshRef.h:66
const Aws::Utils::DateTime & GetCreatedAt() const
Definition MeshRef.h:58
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
bool CreatedAtHasBeenSet() const
Definition MeshRef.h:59
AWS_APPMESH_API MeshRef & operator=(Aws::Utils::Json::JsonView jsonValue)
MeshRef & WithMeshName(MeshNameT &&value)
Definition MeshRef.h:103
MeshRef & WithMeshOwner(MeshOwnerT &&value)
Definition MeshRef.h:125
bool MeshNameHasBeenSet() const
Definition MeshRef.h:96
void SetCreatedAt(CreatedAtT &&value)
Definition MeshRef.h:61
void SetVersion(long long value)
Definition MeshRef.h:160
MeshRef & WithArn(ArnT &&value)
Definition MeshRef.h:48
void SetArn(ArnT &&value)
Definition MeshRef.h:43
bool ArnHasBeenSet() const
Definition MeshRef.h:41
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition MeshRef.h:77
const Aws::String & GetMeshOwner() const
Definition MeshRef.h:117
bool ResourceOwnerHasBeenSet() const
Definition MeshRef.h:140
bool MeshOwnerHasBeenSet() const
Definition MeshRef.h:118
AWS_APPMESH_API MeshRef()=default
bool VersionHasBeenSet() const
Definition MeshRef.h:159
const Aws::String & GetResourceOwner() const
Definition MeshRef.h:139
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue