AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
RouteRef.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 RouteRef {
30 public:
31 AWS_APPMESH_API RouteRef() = default;
32 AWS_APPMESH_API RouteRef(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMESH_API RouteRef& 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 RouteRef& 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 RouteRef& 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 RouteRef& 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 RouteRef& 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 RouteRef& 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 RouteRef& WithResourceOwner(ResourceOwnerT&& value) {
148 SetResourceOwner(std::forward<ResourceOwnerT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetRouteName() const { return m_routeName; }
158 inline bool RouteNameHasBeenSet() const { return m_routeNameHasBeenSet; }
159 template <typename RouteNameT = Aws::String>
160 void SetRouteName(RouteNameT&& value) {
161 m_routeNameHasBeenSet = true;
162 m_routeName = std::forward<RouteNameT>(value);
163 }
164 template <typename RouteNameT = Aws::String>
165 RouteRef& WithRouteName(RouteNameT&& value) {
166 SetRouteName(std::forward<RouteNameT>(value));
167 return *this;
168 }
170
172
176 inline long long GetVersion() const { return m_version; }
177 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
178 inline void SetVersion(long long value) {
179 m_versionHasBeenSet = true;
180 m_version = value;
181 }
182 inline RouteRef& WithVersion(long long value) {
183 SetVersion(value);
184 return *this;
185 }
187
189
192 inline const Aws::String& GetVirtualRouterName() const { return m_virtualRouterName; }
193 inline bool VirtualRouterNameHasBeenSet() const { return m_virtualRouterNameHasBeenSet; }
194 template <typename VirtualRouterNameT = Aws::String>
195 void SetVirtualRouterName(VirtualRouterNameT&& value) {
196 m_virtualRouterNameHasBeenSet = true;
197 m_virtualRouterName = std::forward<VirtualRouterNameT>(value);
198 }
199 template <typename VirtualRouterNameT = Aws::String>
200 RouteRef& WithVirtualRouterName(VirtualRouterNameT&& value) {
201 SetVirtualRouterName(std::forward<VirtualRouterNameT>(value));
202 return *this;
203 }
205 private:
206 Aws::String m_arn;
207
208 Aws::Utils::DateTime m_createdAt{};
209
210 Aws::Utils::DateTime m_lastUpdatedAt{};
211
212 Aws::String m_meshName;
213
214 Aws::String m_meshOwner;
215
216 Aws::String m_resourceOwner;
217
218 Aws::String m_routeName;
219
220 long long m_version{0};
221
222 Aws::String m_virtualRouterName;
223 bool m_arnHasBeenSet = false;
224 bool m_createdAtHasBeenSet = false;
225 bool m_lastUpdatedAtHasBeenSet = false;
226 bool m_meshNameHasBeenSet = false;
227 bool m_meshOwnerHasBeenSet = false;
228 bool m_resourceOwnerHasBeenSet = false;
229 bool m_routeNameHasBeenSet = false;
230 bool m_versionHasBeenSet = false;
231 bool m_virtualRouterNameHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace AppMesh
236} // namespace Aws
RouteRef & WithRouteName(RouteNameT &&value)
Definition RouteRef.h:165
void SetResourceOwner(ResourceOwnerT &&value)
Definition RouteRef.h:142
RouteRef & WithCreatedAt(CreatedAtT &&value)
Definition RouteRef.h:66
bool RouteNameHasBeenSet() const
Definition RouteRef.h:158
bool MeshOwnerHasBeenSet() const
Definition RouteRef.h:118
bool CreatedAtHasBeenSet() const
Definition RouteRef.h:59
const Aws::String & GetRouteName() const
Definition RouteRef.h:157
RouteRef & WithVersion(long long value)
Definition RouteRef.h:182
AWS_APPMESH_API RouteRef & operator=(Aws::Utils::Json::JsonView jsonValue)
long long GetVersion() const
Definition RouteRef.h:176
RouteRef & WithResourceOwner(ResourceOwnerT &&value)
Definition RouteRef.h:147
void SetVirtualRouterName(VirtualRouterNameT &&value)
Definition RouteRef.h:195
void SetRouteName(RouteNameT &&value)
Definition RouteRef.h:160
const Aws::String & GetResourceOwner() const
Definition RouteRef.h:139
bool LastUpdatedAtHasBeenSet() const
Definition RouteRef.h:78
void SetArn(ArnT &&value)
Definition RouteRef.h:43
bool MeshNameHasBeenSet() const
Definition RouteRef.h:96
AWS_APPMESH_API RouteRef()=default
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition RouteRef.h:77
void SetCreatedAt(CreatedAtT &&value)
Definition RouteRef.h:61
const Aws::String & GetArn() const
Definition RouteRef.h:40
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
RouteRef & WithMeshOwner(MeshOwnerT &&value)
Definition RouteRef.h:125
bool VirtualRouterNameHasBeenSet() const
Definition RouteRef.h:193
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition RouteRef.h:80
void SetMeshName(MeshNameT &&value)
Definition RouteRef.h:98
const Aws::String & GetMeshOwner() const
Definition RouteRef.h:117
const Aws::Utils::DateTime & GetCreatedAt() const
Definition RouteRef.h:58
AWS_APPMESH_API RouteRef(Aws::Utils::Json::JsonView jsonValue)
RouteRef & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition RouteRef.h:85
RouteRef & WithArn(ArnT &&value)
Definition RouteRef.h:48
RouteRef & WithMeshName(MeshNameT &&value)
Definition RouteRef.h:103
bool ResourceOwnerHasBeenSet() const
Definition RouteRef.h:140
const Aws::String & GetVirtualRouterName() const
Definition RouteRef.h:192
void SetMeshOwner(MeshOwnerT &&value)
Definition RouteRef.h:120
RouteRef & WithVirtualRouterName(VirtualRouterNameT &&value)
Definition RouteRef.h:200
const Aws::String & GetMeshName() const
Definition RouteRef.h:95
void SetVersion(long long value)
Definition RouteRef.h:178
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue