AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Namespace.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
10#include <aws/servicediscovery/model/NamespaceProperties.h>
11#include <aws/servicediscovery/model/NamespaceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ServiceDiscovery {
23namespace Model {
24
31class Namespace {
32 public:
33 AWS_SERVICEDISCOVERY_API Namespace() = default;
34 AWS_SERVICEDISCOVERY_API Namespace(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SERVICEDISCOVERY_API Namespace& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 Namespace& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetArn() const { return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 template <typename ArnT = Aws::String>
64 void SetArn(ArnT&& value) {
65 m_arnHasBeenSet = true;
66 m_arn = std::forward<ArnT>(value);
67 }
68 template <typename ArnT = Aws::String>
69 Namespace& WithArn(ArnT&& value) {
70 SetArn(std::forward<ArnT>(value));
71 return *this;
72 }
74
76
83 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
84 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
85 template <typename ResourceOwnerT = Aws::String>
86 void SetResourceOwner(ResourceOwnerT&& value) {
87 m_resourceOwnerHasBeenSet = true;
88 m_resourceOwner = std::forward<ResourceOwnerT>(value);
89 }
90 template <typename ResourceOwnerT = Aws::String>
91 Namespace& WithResourceOwner(ResourceOwnerT&& value) {
92 SetResourceOwner(std::forward<ResourceOwnerT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetName() const { return m_name; }
102 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
103 template <typename NameT = Aws::String>
104 void SetName(NameT&& value) {
105 m_nameHasBeenSet = true;
106 m_name = std::forward<NameT>(value);
107 }
108 template <typename NameT = Aws::String>
109 Namespace& WithName(NameT&& value) {
110 SetName(std::forward<NameT>(value));
111 return *this;
112 }
114
116
126 inline NamespaceType GetType() const { return m_type; }
127 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
128 inline void SetType(NamespaceType value) {
129 m_typeHasBeenSet = true;
130 m_type = value;
131 }
133 SetType(value);
134 return *this;
135 }
137
139
142 inline const Aws::String& GetDescription() const { return m_description; }
143 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
144 template <typename DescriptionT = Aws::String>
145 void SetDescription(DescriptionT&& value) {
146 m_descriptionHasBeenSet = true;
147 m_description = std::forward<DescriptionT>(value);
148 }
149 template <typename DescriptionT = Aws::String>
150 Namespace& WithDescription(DescriptionT&& value) {
151 SetDescription(std::forward<DescriptionT>(value));
152 return *this;
153 }
155
157
160 inline int GetServiceCount() const { return m_serviceCount; }
161 inline bool ServiceCountHasBeenSet() const { return m_serviceCountHasBeenSet; }
162 inline void SetServiceCount(int value) {
163 m_serviceCountHasBeenSet = true;
164 m_serviceCount = value;
165 }
166 inline Namespace& WithServiceCount(int value) {
167 SetServiceCount(value);
168 return *this;
169 }
171
173
177 inline const NamespaceProperties& GetProperties() const { return m_properties; }
178 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
179 template <typename PropertiesT = NamespaceProperties>
180 void SetProperties(PropertiesT&& value) {
181 m_propertiesHasBeenSet = true;
182 m_properties = std::forward<PropertiesT>(value);
183 }
184 template <typename PropertiesT = NamespaceProperties>
185 Namespace& WithProperties(PropertiesT&& value) {
186 SetProperties(std::forward<PropertiesT>(value));
187 return *this;
188 }
190
192
198 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
199 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
200 template <typename CreateDateT = Aws::Utils::DateTime>
201 void SetCreateDate(CreateDateT&& value) {
202 m_createDateHasBeenSet = true;
203 m_createDate = std::forward<CreateDateT>(value);
204 }
205 template <typename CreateDateT = Aws::Utils::DateTime>
206 Namespace& WithCreateDate(CreateDateT&& value) {
207 SetCreateDate(std::forward<CreateDateT>(value));
208 return *this;
209 }
211
213
217 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
218 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
219 template <typename CreatorRequestIdT = Aws::String>
220 void SetCreatorRequestId(CreatorRequestIdT&& value) {
221 m_creatorRequestIdHasBeenSet = true;
222 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
223 }
224 template <typename CreatorRequestIdT = Aws::String>
225 Namespace& WithCreatorRequestId(CreatorRequestIdT&& value) {
226 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_id;
232
233 Aws::String m_arn;
234
235 Aws::String m_resourceOwner;
236
237 Aws::String m_name;
238
240
241 Aws::String m_description;
242
243 int m_serviceCount{0};
244
245 NamespaceProperties m_properties;
246
247 Aws::Utils::DateTime m_createDate{};
248
249 Aws::String m_creatorRequestId;
250 bool m_idHasBeenSet = false;
251 bool m_arnHasBeenSet = false;
252 bool m_resourceOwnerHasBeenSet = false;
253 bool m_nameHasBeenSet = false;
254 bool m_typeHasBeenSet = false;
255 bool m_descriptionHasBeenSet = false;
256 bool m_serviceCountHasBeenSet = false;
257 bool m_propertiesHasBeenSet = false;
258 bool m_createDateHasBeenSet = false;
259 bool m_creatorRequestIdHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace ServiceDiscovery
264} // namespace Aws
void SetCreateDate(CreateDateT &&value)
Definition Namespace.h:201
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
Namespace & WithId(IdT &&value)
Definition Namespace.h:50
AWS_SERVICEDISCOVERY_API Namespace(Aws::Utils::Json::JsonView jsonValue)
void SetResourceOwner(ResourceOwnerT &&value)
Definition Namespace.h:86
const Aws::String & GetResourceOwner() const
Definition Namespace.h:83
void SetCreatorRequestId(CreatorRequestIdT &&value)
Definition Namespace.h:220
const Aws::String & GetDescription() const
Definition Namespace.h:142
Namespace & WithProperties(PropertiesT &&value)
Definition Namespace.h:185
Namespace & WithResourceOwner(ResourceOwnerT &&value)
Definition Namespace.h:91
Namespace & WithDescription(DescriptionT &&value)
Definition Namespace.h:150
Namespace & WithServiceCount(int value)
Definition Namespace.h:166
AWS_SERVICEDISCOVERY_API Namespace & operator=(Aws::Utils::Json::JsonView jsonValue)
Namespace & WithArn(ArnT &&value)
Definition Namespace.h:69
Namespace & WithCreatorRequestId(CreatorRequestIdT &&value)
Definition Namespace.h:225
const Aws::Utils::DateTime & GetCreateDate() const
Definition Namespace.h:198
Namespace & WithCreateDate(CreateDateT &&value)
Definition Namespace.h:206
const NamespaceProperties & GetProperties() const
Definition Namespace.h:177
const Aws::String & GetName() const
Definition Namespace.h:101
const Aws::String & GetCreatorRequestId() const
Definition Namespace.h:217
void SetProperties(PropertiesT &&value)
Definition Namespace.h:180
AWS_SERVICEDISCOVERY_API Namespace()=default
Namespace & WithType(NamespaceType value)
Definition Namespace.h:132
void SetDescription(DescriptionT &&value)
Definition Namespace.h:145
const Aws::String & GetArn() const
Definition Namespace.h:61
const Aws::String & GetId() const
Definition Namespace.h:42
void SetType(NamespaceType value)
Definition Namespace.h:128
Namespace & WithName(NameT &&value)
Definition Namespace.h:109
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue