AWS SDK for C++  1.9.104
AWS SDK for C++
Namespace.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace ServiceDiscovery
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetId() const{ return m_id; }
48 
52  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 
57  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
58 
62  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
63 
67  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
68 
72  inline Namespace& WithId(const Aws::String& value) { SetId(value); return *this;}
73 
77  inline Namespace& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
78 
82  inline Namespace& WithId(const char* value) { SetId(value); return *this;}
83 
84 
89  inline const Aws::String& GetArn() const{ return m_arn; }
90 
95  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
96 
101  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
102 
107  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
108 
113  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
114 
119  inline Namespace& WithArn(const Aws::String& value) { SetArn(value); return *this;}
120 
125  inline Namespace& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
126 
131  inline Namespace& WithArn(const char* value) { SetArn(value); return *this;}
132 
133 
137  inline const Aws::String& GetName() const{ return m_name; }
138 
142  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
143 
147  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
148 
152  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
153 
157  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
158 
162  inline Namespace& WithName(const Aws::String& value) { SetName(value); return *this;}
163 
167  inline Namespace& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
168 
172  inline Namespace& WithName(const char* value) { SetName(value); return *this;}
173 
174 
185  inline const NamespaceType& GetType() const{ return m_type; }
186 
197  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
198 
209  inline void SetType(const NamespaceType& value) { m_typeHasBeenSet = true; m_type = value; }
210 
221  inline void SetType(NamespaceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
222 
233  inline Namespace& WithType(const NamespaceType& value) { SetType(value); return *this;}
234 
245  inline Namespace& WithType(NamespaceType&& value) { SetType(std::move(value)); return *this;}
246 
247 
251  inline const Aws::String& GetDescription() const{ return m_description; }
252 
256  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
257 
261  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
262 
266  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
267 
271  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
272 
276  inline Namespace& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
277 
281  inline Namespace& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
282 
286  inline Namespace& WithDescription(const char* value) { SetDescription(value); return *this;}
287 
288 
292  inline int GetServiceCount() const{ return m_serviceCount; }
293 
297  inline bool ServiceCountHasBeenSet() const { return m_serviceCountHasBeenSet; }
298 
302  inline void SetServiceCount(int value) { m_serviceCountHasBeenSet = true; m_serviceCount = value; }
303 
307  inline Namespace& WithServiceCount(int value) { SetServiceCount(value); return *this;}
308 
309 
314  inline const NamespaceProperties& GetProperties() const{ return m_properties; }
315 
320  inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
321 
326  inline void SetProperties(const NamespaceProperties& value) { m_propertiesHasBeenSet = true; m_properties = value; }
327 
332  inline void SetProperties(NamespaceProperties&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
333 
338  inline Namespace& WithProperties(const NamespaceProperties& value) { SetProperties(value); return *this;}
339 
344  inline Namespace& WithProperties(NamespaceProperties&& value) { SetProperties(std::move(value)); return *this;}
345 
346 
353  inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
354 
361  inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
362 
369  inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
370 
377  inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
378 
385  inline Namespace& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
386 
393  inline Namespace& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
394 
395 
400  inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
401 
406  inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
407 
412  inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
413 
418  inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
419 
424  inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
425 
430  inline Namespace& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
431 
436  inline Namespace& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
437 
442  inline Namespace& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
443 
444  private:
445 
446  Aws::String m_id;
447  bool m_idHasBeenSet;
448 
449  Aws::String m_arn;
450  bool m_arnHasBeenSet;
451 
452  Aws::String m_name;
453  bool m_nameHasBeenSet;
454 
455  NamespaceType m_type;
456  bool m_typeHasBeenSet;
457 
458  Aws::String m_description;
459  bool m_descriptionHasBeenSet;
460 
461  int m_serviceCount;
462  bool m_serviceCountHasBeenSet;
463 
464  NamespaceProperties m_properties;
465  bool m_propertiesHasBeenSet;
466 
467  Aws::Utils::DateTime m_createDate;
468  bool m_createDateHasBeenSet;
469 
470  Aws::String m_creatorRequestId;
471  bool m_creatorRequestIdHasBeenSet;
472  };
473 
474 } // namespace Model
475 } // namespace ServiceDiscovery
476 } // namespace Aws
Aws::ServiceDiscovery::Model::Namespace::WithDescription
Namespace & WithDescription(const Aws::String &value)
Definition: Namespace.h:276
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::ServiceDiscovery::Model::Namespace::Namespace
Namespace(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::NamespaceType
NamespaceType
Definition: NamespaceType.h:17
Aws::ServiceDiscovery::Model::Namespace::SetType
void SetType(const NamespaceType &value)
Definition: Namespace.h:209
Aws::ServiceDiscovery::Model::Namespace::GetId
const Aws::String & GetId() const
Definition: Namespace.h:47
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::Namespace::GetName
const Aws::String & GetName() const
Definition: Namespace.h:137
Aws::ServiceDiscovery::Model::Namespace::CreateDateHasBeenSet
bool CreateDateHasBeenSet() const
Definition: Namespace.h:361
Aws::ServiceDiscovery::Model::Namespace::WithName
Namespace & WithName(Aws::String &&value)
Definition: Namespace.h:167
Aws::ServiceDiscovery::Model::Namespace::WithName
Namespace & WithName(const Aws::String &value)
Definition: Namespace.h:162
Aws::ServiceDiscovery::Model::Namespace::SetArn
void SetArn(const char *value)
Definition: Namespace.h:113
Aws::ServiceDiscovery::Model::NamespaceProperties
Definition: NamespaceProperties.h:34
Aws::ServiceDiscovery::Model::Namespace::WithCreatorRequestId
Namespace & WithCreatorRequestId(const char *value)
Definition: Namespace.h:442
Aws::ServiceDiscovery::Model::Namespace::PropertiesHasBeenSet
bool PropertiesHasBeenSet() const
Definition: Namespace.h:320
Aws::ServiceDiscovery::Model::Namespace::ServiceCountHasBeenSet
bool ServiceCountHasBeenSet() const
Definition: Namespace.h:297
Aws::ServiceDiscovery::Model::Namespace::SetProperties
void SetProperties(const NamespaceProperties &value)
Definition: Namespace.h:326
Aws::ServiceDiscovery::Model::Namespace::WithCreateDate
Namespace & WithCreateDate(Aws::Utils::DateTime &&value)
Definition: Namespace.h:393
Aws::ServiceDiscovery::Model::Namespace::SetDescription
void SetDescription(const Aws::String &value)
Definition: Namespace.h:261
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::Namespace::operator=
Namespace & operator=(Aws::Utils::Json::JsonView jsonValue)
DateTime.h
Aws::ServiceDiscovery::Model::Namespace::SetCreateDate
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition: Namespace.h:377
Aws::ServiceDiscovery::Model::Namespace::WithArn
Namespace & WithArn(const char *value)
Definition: Namespace.h:131
Aws::ServiceDiscovery::Model::Namespace::WithName
Namespace & WithName(const char *value)
Definition: Namespace.h:172
Aws::ServiceDiscovery::Model::Namespace::SetCreatorRequestId
void SetCreatorRequestId(const Aws::String &value)
Definition: Namespace.h:412
Aws::ServiceDiscovery::Model::Namespace::WithId
Namespace & WithId(const char *value)
Definition: Namespace.h:82
Aws::ServiceDiscovery::Model::Namespace::WithProperties
Namespace & WithProperties(NamespaceProperties &&value)
Definition: Namespace.h:344
Aws::ServiceDiscovery::Model::Namespace::WithCreatorRequestId
Namespace & WithCreatorRequestId(const Aws::String &value)
Definition: Namespace.h:430
Aws::ServiceDiscovery::Model::Namespace::SetArn
void SetArn(Aws::String &&value)
Definition: Namespace.h:107
Aws::ServiceDiscovery::Model::Namespace::SetProperties
void SetProperties(NamespaceProperties &&value)
Definition: Namespace.h:332
Aws::ServiceDiscovery::Model::Namespace::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Namespace.h:95
Aws::ServiceDiscovery::Model::Namespace::WithId
Namespace & WithId(const Aws::String &value)
Definition: Namespace.h:72
Aws::ServiceDiscovery::Model::Namespace::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: Namespace.h:256
Aws::ServiceDiscovery::Model::Namespace::SetType
void SetType(NamespaceType &&value)
Definition: Namespace.h:221
Aws::ServiceDiscovery::Model::Namespace::SetDescription
void SetDescription(Aws::String &&value)
Definition: Namespace.h:266
Aws::ServiceDiscovery::Model::Namespace::WithCreateDate
Namespace & WithCreateDate(const Aws::Utils::DateTime &value)
Definition: Namespace.h:385
Aws::ServiceDiscovery::Model::Namespace::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Namespace.h:197
Aws::ServiceDiscovery::Model::Namespace::SetCreateDate
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition: Namespace.h:369
Aws::ServiceDiscovery::Model::Namespace
Definition: Namespace.h:36
Aws::ServiceDiscovery::Model::Namespace::WithDescription
Namespace & WithDescription(const char *value)
Definition: Namespace.h:286
Aws::ServiceDiscovery::Model::Namespace::SetId
void SetId(Aws::String &&value)
Definition: Namespace.h:62
Aws::ServiceDiscovery::Model::Namespace::GetServiceCount
int GetServiceCount() const
Definition: Namespace.h:292
Aws::ServiceDiscovery::Model::Namespace::SetArn
void SetArn(const Aws::String &value)
Definition: Namespace.h:101
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ServiceDiscovery::Model::Namespace::Namespace
Namespace()
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::Namespace::GetProperties
const NamespaceProperties & GetProperties() const
Definition: Namespace.h:314
Aws::ServiceDiscovery::Model::Namespace::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Namespace.h:142
Aws::ServiceDiscovery::Model::Namespace::CreatorRequestIdHasBeenSet
bool CreatorRequestIdHasBeenSet() const
Definition: Namespace.h:406
Aws::ServiceDiscovery::Model::Namespace::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceDiscovery::Model::Namespace::GetArn
const Aws::String & GetArn() const
Definition: Namespace.h:89
Aws::ServiceDiscovery::Model::Namespace::SetId
void SetId(const char *value)
Definition: Namespace.h:67
Aws::ServiceDiscovery::Model::Namespace::SetCreatorRequestId
void SetCreatorRequestId(const char *value)
Definition: Namespace.h:424
Aws::ServiceDiscovery::Model::Namespace::SetDescription
void SetDescription(const char *value)
Definition: Namespace.h:271
Aws::ServiceDiscovery::Model::Namespace::WithType
Namespace & WithType(NamespaceType &&value)
Definition: Namespace.h:245
Aws::ServiceDiscovery::Model::Namespace::SetName
void SetName(Aws::String &&value)
Definition: Namespace.h:152
Aws::ServiceDiscovery::Model::Namespace::WithType
Namespace & WithType(const NamespaceType &value)
Definition: Namespace.h:233
Aws::ServiceDiscovery::Model::Namespace::WithId
Namespace & WithId(Aws::String &&value)
Definition: Namespace.h:77
Aws::ServiceDiscovery::Model::Namespace::SetName
void SetName(const char *value)
Definition: Namespace.h:157
Aws::ServiceDiscovery::Model::Namespace::WithCreatorRequestId
Namespace & WithCreatorRequestId(Aws::String &&value)
Definition: Namespace.h:436
NamespaceType.h
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::Namespace::WithDescription
Namespace & WithDescription(Aws::String &&value)
Definition: Namespace.h:281
Aws::ServiceDiscovery::Model::Namespace::SetId
void SetId(const Aws::String &value)
Definition: Namespace.h:57
Aws::ServiceDiscovery::Model::Namespace::WithProperties
Namespace & WithProperties(const NamespaceProperties &value)
Definition: Namespace.h:338
Aws::ServiceDiscovery::Model::Namespace::WithArn
Namespace & WithArn(const Aws::String &value)
Definition: Namespace.h:119
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::Namespace::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Namespace.h:52
Aws::ServiceDiscovery::Model::Namespace::WithArn
Namespace & WithArn(Aws::String &&value)
Definition: Namespace.h:125
Aws::ServiceDiscovery::Model::Namespace::GetDescription
const Aws::String & GetDescription() const
Definition: Namespace.h:251
Aws::ServiceDiscovery::Model::Namespace::WithServiceCount
Namespace & WithServiceCount(int value)
Definition: Namespace.h:307
Aws::ServiceDiscovery::Model::Namespace::SetCreatorRequestId
void SetCreatorRequestId(Aws::String &&value)
Definition: Namespace.h:418
Aws::ServiceDiscovery::Model::Namespace::SetServiceCount
void SetServiceCount(int value)
Definition: Namespace.h:302
Aws::ServiceDiscovery::Model::Namespace::SetName
void SetName(const Aws::String &value)
Definition: Namespace.h:147
Aws::ServiceDiscovery::Model::Namespace::GetCreateDate
const Aws::Utils::DateTime & GetCreateDate() const
Definition: Namespace.h:353
Aws::ServiceDiscovery::Model::Namespace::GetType
const NamespaceType & GetType() const
Definition: Namespace.h:185
Aws::ServiceDiscovery::Model::Namespace::GetCreatorRequestId
const Aws::String & GetCreatorRequestId() const
Definition: Namespace.h:400
NamespaceProperties.h