AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
VirtualRouterRef.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
30 public:
31 AWS_APPMESH_API VirtualRouterRef() = default;
32 AWS_APPMESH_API VirtualRouterRef(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 VirtualRouterRef& 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 VirtualRouterRef& 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 VirtualRouterRef& 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 VirtualRouterRef& 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 VirtualRouterRef& 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 VirtualRouterRef& 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 VirtualRouterRef& WithVersion(long long value) {
165 SetVersion(value);
166 return *this;
167 }
169
171
174 inline const Aws::String& GetVirtualRouterName() const { return m_virtualRouterName; }
175 inline bool VirtualRouterNameHasBeenSet() const { return m_virtualRouterNameHasBeenSet; }
176 template <typename VirtualRouterNameT = Aws::String>
177 void SetVirtualRouterName(VirtualRouterNameT&& value) {
178 m_virtualRouterNameHasBeenSet = true;
179 m_virtualRouterName = std::forward<VirtualRouterNameT>(value);
180 }
181 template <typename VirtualRouterNameT = Aws::String>
182 VirtualRouterRef& WithVirtualRouterName(VirtualRouterNameT&& value) {
183 SetVirtualRouterName(std::forward<VirtualRouterNameT>(value));
184 return *this;
185 }
187 private:
188 Aws::String m_arn;
189
190 Aws::Utils::DateTime m_createdAt{};
191
192 Aws::Utils::DateTime m_lastUpdatedAt{};
193
194 Aws::String m_meshName;
195
196 Aws::String m_meshOwner;
197
198 Aws::String m_resourceOwner;
199
200 long long m_version{0};
201
202 Aws::String m_virtualRouterName;
203 bool m_arnHasBeenSet = false;
204 bool m_createdAtHasBeenSet = false;
205 bool m_lastUpdatedAtHasBeenSet = false;
206 bool m_meshNameHasBeenSet = false;
207 bool m_meshOwnerHasBeenSet = false;
208 bool m_resourceOwnerHasBeenSet = false;
209 bool m_versionHasBeenSet = false;
210 bool m_virtualRouterNameHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace AppMesh
215} // namespace Aws
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetVirtualRouterName() const
AWS_APPMESH_API VirtualRouterRef()=default
VirtualRouterRef & WithArn(ArnT &&value)
void SetVirtualRouterName(VirtualRouterNameT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
VirtualRouterRef & WithVirtualRouterName(VirtualRouterNameT &&value)
AWS_APPMESH_API VirtualRouterRef & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceOwner(ResourceOwnerT &&value)
VirtualRouterRef & WithLastUpdatedAt(LastUpdatedAtT &&value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetResourceOwner() const
VirtualRouterRef & WithMeshName(MeshNameT &&value)
VirtualRouterRef & WithVersion(long long value)
const Aws::String & GetMeshOwner() const
AWS_APPMESH_API VirtualRouterRef(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
VirtualRouterRef & WithResourceOwner(ResourceOwnerT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetMeshName() const
VirtualRouterRef & WithMeshOwner(MeshOwnerT &&value)
const Aws::String & GetArn() const
VirtualRouterRef & WithCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue