AWS SDK for C++  1.9.105
AWS SDK for C++
NamespaceSummary.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 NamespaceSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
73 
77  inline NamespaceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
78 
82  inline NamespaceSummary& 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 NamespaceSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
120 
125  inline NamespaceSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
126 
131  inline NamespaceSummary& WithArn(const char* value) { SetArn(value); return *this;}
132 
133 
139  inline const Aws::String& GetName() const{ return m_name; }
140 
146  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
147 
153  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
154 
160  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
161 
167  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
168 
174  inline NamespaceSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
175 
181  inline NamespaceSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
182 
188  inline NamespaceSummary& WithName(const char* value) { SetName(value); return *this;}
189 
190 
194  inline const NamespaceType& GetType() const{ return m_type; }
195 
199  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
200 
204  inline void SetType(const NamespaceType& value) { m_typeHasBeenSet = true; m_type = value; }
205 
209  inline void SetType(NamespaceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
210 
214  inline NamespaceSummary& WithType(const NamespaceType& value) { SetType(value); return *this;}
215 
219  inline NamespaceSummary& WithType(NamespaceType&& value) { SetType(std::move(value)); return *this;}
220 
221 
225  inline const Aws::String& GetDescription() const{ return m_description; }
226 
230  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
231 
235  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
236 
240  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
241 
245  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
246 
250  inline NamespaceSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
251 
255  inline NamespaceSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
256 
260  inline NamespaceSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
261 
262 
266  inline int GetServiceCount() const{ return m_serviceCount; }
267 
271  inline bool ServiceCountHasBeenSet() const { return m_serviceCountHasBeenSet; }
272 
276  inline void SetServiceCount(int value) { m_serviceCountHasBeenSet = true; m_serviceCount = value; }
277 
281  inline NamespaceSummary& WithServiceCount(int value) { SetServiceCount(value); return *this;}
282 
283 
287  inline const NamespaceProperties& GetProperties() const{ return m_properties; }
288 
292  inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
293 
297  inline void SetProperties(const NamespaceProperties& value) { m_propertiesHasBeenSet = true; m_properties = value; }
298 
302  inline void SetProperties(NamespaceProperties&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
303 
307  inline NamespaceSummary& WithProperties(const NamespaceProperties& value) { SetProperties(value); return *this;}
308 
312  inline NamespaceSummary& WithProperties(NamespaceProperties&& value) { SetProperties(std::move(value)); return *this;}
313 
314 
318  inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
319 
323  inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
324 
328  inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
329 
333  inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
334 
338  inline NamespaceSummary& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
339 
343  inline NamespaceSummary& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
344 
345  private:
346 
347  Aws::String m_id;
348  bool m_idHasBeenSet;
349 
350  Aws::String m_arn;
351  bool m_arnHasBeenSet;
352 
353  Aws::String m_name;
354  bool m_nameHasBeenSet;
355 
356  NamespaceType m_type;
357  bool m_typeHasBeenSet;
358 
359  Aws::String m_description;
360  bool m_descriptionHasBeenSet;
361 
362  int m_serviceCount;
363  bool m_serviceCountHasBeenSet;
364 
365  NamespaceProperties m_properties;
366  bool m_propertiesHasBeenSet;
367 
368  Aws::Utils::DateTime m_createDate;
369  bool m_createDateHasBeenSet;
370  };
371 
372 } // namespace Model
373 } // namespace ServiceDiscovery
374 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::ServiceDiscovery::Model::NamespaceSummary::SetCreateDate
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition: NamespaceSummary.h:328
Aws::ServiceDiscovery::Model::NamespaceType
NamespaceType
Definition: NamespaceType.h:17
Aws::ServiceDiscovery::Model::NamespaceSummary::WithArn
NamespaceSummary & WithArn(const char *value)
Definition: NamespaceSummary.h:131
Aws::ServiceDiscovery::Model::NamespaceSummary::WithDescription
NamespaceSummary & WithDescription(const Aws::String &value)
Definition: NamespaceSummary.h:250
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::NamespaceSummary::SetArn
void SetArn(Aws::String &&value)
Definition: NamespaceSummary.h:107
Aws::ServiceDiscovery::Model::NamespaceSummary::NameHasBeenSet
bool NameHasBeenSet() const
Definition: NamespaceSummary.h:146
Aws::ServiceDiscovery::Model::NamespaceProperties
Definition: NamespaceProperties.h:34
Aws::ServiceDiscovery::Model::NamespaceSummary::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: NamespaceSummary.h:95
Aws::ServiceDiscovery::Model::NamespaceSummary::SetDescription
void SetDescription(const Aws::String &value)
Definition: NamespaceSummary.h:235
Aws::ServiceDiscovery::Model::NamespaceSummary::SetProperties
void SetProperties(const NamespaceProperties &value)
Definition: NamespaceSummary.h:297
Aws::ServiceDiscovery::Model::NamespaceSummary::WithName
NamespaceSummary & WithName(const char *value)
Definition: NamespaceSummary.h:188
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::NamespaceSummary::SetId
void SetId(const char *value)
Definition: NamespaceSummary.h:67
DateTime.h
Aws::ServiceDiscovery::Model::NamespaceSummary::IdHasBeenSet
bool IdHasBeenSet() const
Definition: NamespaceSummary.h:52
Aws::ServiceDiscovery::Model::NamespaceSummary::WithType
NamespaceSummary & WithType(const NamespaceType &value)
Definition: NamespaceSummary.h:214
Aws::ServiceDiscovery::Model::NamespaceSummary::SetId
void SetId(Aws::String &&value)
Definition: NamespaceSummary.h:62
Aws::ServiceDiscovery::Model::NamespaceSummary::SetType
void SetType(NamespaceType &&value)
Definition: NamespaceSummary.h:209
Aws::ServiceDiscovery::Model::NamespaceSummary::GetProperties
const NamespaceProperties & GetProperties() const
Definition: NamespaceSummary.h:287
Aws::ServiceDiscovery::Model::NamespaceSummary::NamespaceSummary
NamespaceSummary(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::NamespaceSummary::SetDescription
void SetDescription(const char *value)
Definition: NamespaceSummary.h:245
Aws::ServiceDiscovery::Model::NamespaceSummary
Definition: NamespaceSummary.h:36
Aws::ServiceDiscovery::Model::NamespaceSummary::WithProperties
NamespaceSummary & WithProperties(const NamespaceProperties &value)
Definition: NamespaceSummary.h:307
Aws::ServiceDiscovery::Model::NamespaceSummary::SetName
void SetName(const char *value)
Definition: NamespaceSummary.h:167
Aws::ServiceDiscovery::Model::NamespaceSummary::NamespaceSummary
NamespaceSummary()
Aws::ServiceDiscovery::Model::NamespaceSummary::WithName
NamespaceSummary & WithName(const Aws::String &value)
Definition: NamespaceSummary.h:174
Aws::ServiceDiscovery::Model::NamespaceSummary::GetArn
const Aws::String & GetArn() const
Definition: NamespaceSummary.h:89
Aws::ServiceDiscovery::Model::NamespaceSummary::GetServiceCount
int GetServiceCount() const
Definition: NamespaceSummary.h:266
Aws::ServiceDiscovery::Model::NamespaceSummary::GetDescription
const Aws::String & GetDescription() const
Definition: NamespaceSummary.h:225
Aws::ServiceDiscovery::Model::NamespaceSummary::WithId
NamespaceSummary & WithId(const Aws::String &value)
Definition: NamespaceSummary.h:72
Aws::ServiceDiscovery::Model::NamespaceSummary::SetArn
void SetArn(const Aws::String &value)
Definition: NamespaceSummary.h:101
Aws::ServiceDiscovery::Model::NamespaceSummary::GetCreateDate
const Aws::Utils::DateTime & GetCreateDate() const
Definition: NamespaceSummary.h:318
Aws::ServiceDiscovery::Model::NamespaceSummary::SetName
void SetName(Aws::String &&value)
Definition: NamespaceSummary.h:160
Aws::ServiceDiscovery::Model::NamespaceSummary::ServiceCountHasBeenSet
bool ServiceCountHasBeenSet() const
Definition: NamespaceSummary.h:271
Aws::ServiceDiscovery::Model::NamespaceSummary::WithArn
NamespaceSummary & WithArn(Aws::String &&value)
Definition: NamespaceSummary.h:125
Aws::ServiceDiscovery::Model::NamespaceSummary::WithCreateDate
NamespaceSummary & WithCreateDate(Aws::Utils::DateTime &&value)
Definition: NamespaceSummary.h:343
Aws::ServiceDiscovery::Model::NamespaceSummary::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: NamespaceSummary.h:230
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::NamespaceSummary::SetType
void SetType(const NamespaceType &value)
Definition: NamespaceSummary.h:204
Aws::ServiceDiscovery::Model::NamespaceSummary::GetId
const Aws::String & GetId() const
Definition: NamespaceSummary.h:47
Aws::ServiceDiscovery::Model::NamespaceSummary::WithServiceCount
NamespaceSummary & WithServiceCount(int value)
Definition: NamespaceSummary.h:281
Aws::ServiceDiscovery::Model::NamespaceSummary::SetName
void SetName(const Aws::String &value)
Definition: NamespaceSummary.h:153
Aws::ServiceDiscovery::Model::NamespaceSummary::GetType
const NamespaceType & GetType() const
Definition: NamespaceSummary.h:194
Aws::ServiceDiscovery::Model::NamespaceSummary::CreateDateHasBeenSet
bool CreateDateHasBeenSet() const
Definition: NamespaceSummary.h:323
Aws::ServiceDiscovery::Model::NamespaceSummary::GetName
const Aws::String & GetName() const
Definition: NamespaceSummary.h:139
Aws::ServiceDiscovery::Model::NamespaceSummary::WithId
NamespaceSummary & WithId(const char *value)
Definition: NamespaceSummary.h:82
Aws::ServiceDiscovery::Model::NamespaceSummary::SetDescription
void SetDescription(Aws::String &&value)
Definition: NamespaceSummary.h:240
Aws::ServiceDiscovery::Model::NamespaceSummary::SetCreateDate
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition: NamespaceSummary.h:333
NamespaceType.h
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::NamespaceSummary::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: NamespaceSummary.h:199
Aws::ServiceDiscovery::Model::NamespaceSummary::WithId
NamespaceSummary & WithId(Aws::String &&value)
Definition: NamespaceSummary.h:77
Aws::ServiceDiscovery::Model::NamespaceSummary::SetProperties
void SetProperties(NamespaceProperties &&value)
Definition: NamespaceSummary.h:302
Aws::ServiceDiscovery::Model::NamespaceSummary::WithDescription
NamespaceSummary & WithDescription(Aws::String &&value)
Definition: NamespaceSummary.h:255
Aws::ServiceDiscovery::Model::NamespaceSummary::WithProperties
NamespaceSummary & WithProperties(NamespaceProperties &&value)
Definition: NamespaceSummary.h:312
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::NamespaceSummary::WithName
NamespaceSummary & WithName(Aws::String &&value)
Definition: NamespaceSummary.h:181
Aws::ServiceDiscovery::Model::NamespaceSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceDiscovery::Model::NamespaceSummary::SetId
void SetId(const Aws::String &value)
Definition: NamespaceSummary.h:57
Aws::ServiceDiscovery::Model::NamespaceSummary::PropertiesHasBeenSet
bool PropertiesHasBeenSet() const
Definition: NamespaceSummary.h:292
Aws::ServiceDiscovery::Model::NamespaceSummary::SetServiceCount
void SetServiceCount(int value)
Definition: NamespaceSummary.h:276
Aws::ServiceDiscovery::Model::NamespaceSummary::WithCreateDate
NamespaceSummary & WithCreateDate(const Aws::Utils::DateTime &value)
Definition: NamespaceSummary.h:338
Aws::ServiceDiscovery::Model::NamespaceSummary::WithType
NamespaceSummary & WithType(NamespaceType &&value)
Definition: NamespaceSummary.h:219
Aws::ServiceDiscovery::Model::NamespaceSummary::WithDescription
NamespaceSummary & WithDescription(const char *value)
Definition: NamespaceSummary.h:260
Aws::ServiceDiscovery::Model::NamespaceSummary::operator=
NamespaceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::NamespaceSummary::WithArn
NamespaceSummary & WithArn(const Aws::String &value)
Definition: NamespaceSummary.h:119
Aws::ServiceDiscovery::Model::NamespaceSummary::SetArn
void SetArn(const char *value)
Definition: NamespaceSummary.h:113
NamespaceProperties.h