AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Namespace.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/servicediscovery/model/NamespaceType.h>
10#include <aws/servicediscovery/model/NamespaceProperties.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ServiceDiscovery
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SERVICEDISCOVERY_API Namespace();
39 AWS_SERVICEDISCOVERY_API Namespace(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SERVICEDISCOVERY_API Namespace& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const{ return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline Namespace& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline Namespace& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline Namespace& WithId(const char* value) { SetId(value); return *this;}
57
59
63 inline const Aws::String& GetArn() const{ return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
66 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
67 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
68 inline Namespace& WithArn(const Aws::String& value) { SetArn(value); return *this;}
69 inline Namespace& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
70 inline Namespace& WithArn(const char* value) { SetArn(value); return *this;}
72
74
77 inline const Aws::String& GetName() const{ return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
80 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
81 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
82 inline Namespace& WithName(const Aws::String& value) { SetName(value); return *this;}
83 inline Namespace& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
84 inline Namespace& WithName(const char* value) { SetName(value); return *this;}
86
88
98 inline const NamespaceType& GetType() const{ return m_type; }
99 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
100 inline void SetType(const NamespaceType& value) { m_typeHasBeenSet = true; m_type = value; }
101 inline void SetType(NamespaceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
102 inline Namespace& WithType(const NamespaceType& value) { SetType(value); return *this;}
103 inline Namespace& WithType(NamespaceType&& value) { SetType(std::move(value)); return *this;}
105
107
110 inline const Aws::String& GetDescription() const{ return m_description; }
111 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
112 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
113 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
114 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
115 inline Namespace& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
116 inline Namespace& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
117 inline Namespace& WithDescription(const char* value) { SetDescription(value); return *this;}
119
121
124 inline int GetServiceCount() const{ return m_serviceCount; }
125 inline bool ServiceCountHasBeenSet() const { return m_serviceCountHasBeenSet; }
126 inline void SetServiceCount(int value) { m_serviceCountHasBeenSet = true; m_serviceCount = value; }
127 inline Namespace& WithServiceCount(int value) { SetServiceCount(value); return *this;}
129
131
135 inline const NamespaceProperties& GetProperties() const{ return m_properties; }
136 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
137 inline void SetProperties(const NamespaceProperties& value) { m_propertiesHasBeenSet = true; m_properties = value; }
138 inline void SetProperties(NamespaceProperties&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
139 inline Namespace& WithProperties(const NamespaceProperties& value) { SetProperties(value); return *this;}
140 inline Namespace& WithProperties(NamespaceProperties&& value) { SetProperties(std::move(value)); return *this;}
142
144
150 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
151 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
152 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
153 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
154 inline Namespace& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
155 inline Namespace& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
157
159
163 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
164 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
165 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
166 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
167 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
168 inline Namespace& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
169 inline Namespace& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
170 inline Namespace& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
172 private:
173
174 Aws::String m_id;
175 bool m_idHasBeenSet = false;
176
177 Aws::String m_arn;
178 bool m_arnHasBeenSet = false;
179
180 Aws::String m_name;
181 bool m_nameHasBeenSet = false;
182
183 NamespaceType m_type;
184 bool m_typeHasBeenSet = false;
185
186 Aws::String m_description;
187 bool m_descriptionHasBeenSet = false;
188
189 int m_serviceCount;
190 bool m_serviceCountHasBeenSet = false;
191
192 NamespaceProperties m_properties;
193 bool m_propertiesHasBeenSet = false;
194
195 Aws::Utils::DateTime m_createDate;
196 bool m_createDateHasBeenSet = false;
197
198 Aws::String m_creatorRequestId;
199 bool m_creatorRequestIdHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace ServiceDiscovery
204} // namespace Aws
void SetName(Aws::String &&value)
Definition Namespace.h:80
Namespace & WithId(const Aws::String &value)
Definition Namespace.h:53
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProperties(const NamespaceProperties &value)
Definition Namespace.h:137
Namespace & WithArn(Aws::String &&value)
Definition Namespace.h:69
AWS_SERVICEDISCOVERY_API Namespace(Aws::Utils::Json::JsonView jsonValue)
Namespace & WithName(const char *value)
Definition Namespace.h:84
void SetId(const char *value)
Definition Namespace.h:52
Namespace & WithArn(const char *value)
Definition Namespace.h:70
Namespace & WithId(Aws::String &&value)
Definition Namespace.h:54
void SetId(Aws::String &&value)
Definition Namespace.h:51
void SetArn(Aws::String &&value)
Definition Namespace.h:66
Namespace & WithProperties(NamespaceProperties &&value)
Definition Namespace.h:140
Namespace & WithDescription(const Aws::String &value)
Definition Namespace.h:115
Namespace & WithCreatorRequestId(Aws::String &&value)
Definition Namespace.h:169
void SetType(const NamespaceType &value)
Definition Namespace.h:100
void SetCreatorRequestId(Aws::String &&value)
Definition Namespace.h:166
Namespace & WithProperties(const NamespaceProperties &value)
Definition Namespace.h:139
const Aws::String & GetDescription() const
Definition Namespace.h:110
void SetCreatorRequestId(const Aws::String &value)
Definition Namespace.h:165
Namespace & WithDescription(const char *value)
Definition Namespace.h:117
Namespace & WithName(Aws::String &&value)
Definition Namespace.h:83
Namespace & WithType(const NamespaceType &value)
Definition Namespace.h:102
Namespace & WithArn(const Aws::String &value)
Definition Namespace.h:68
void SetDescription(const Aws::String &value)
Definition Namespace.h:112
Namespace & WithName(const Aws::String &value)
Definition Namespace.h:82
Namespace & WithCreatorRequestId(const char *value)
Definition Namespace.h:170
Namespace & WithServiceCount(int value)
Definition Namespace.h:127
void SetType(NamespaceType &&value)
Definition Namespace.h:101
AWS_SERVICEDISCOVERY_API Namespace & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(const char *value)
Definition Namespace.h:81
const NamespaceType & GetType() const
Definition Namespace.h:98
void SetProperties(NamespaceProperties &&value)
Definition Namespace.h:138
void SetArn(const Aws::String &value)
Definition Namespace.h:65
Namespace & WithCreateDate(Aws::Utils::DateTime &&value)
Definition Namespace.h:155
void SetId(const Aws::String &value)
Definition Namespace.h:50
void SetDescription(Aws::String &&value)
Definition Namespace.h:113
Namespace & WithCreatorRequestId(const Aws::String &value)
Definition Namespace.h:168
void SetCreatorRequestId(const char *value)
Definition Namespace.h:167
void SetName(const Aws::String &value)
Definition Namespace.h:79
Namespace & WithDescription(Aws::String &&value)
Definition Namespace.h:116
Namespace & WithId(const char *value)
Definition Namespace.h:55
const Aws::Utils::DateTime & GetCreateDate() const
Definition Namespace.h:150
Namespace & WithType(NamespaceType &&value)
Definition Namespace.h:103
const NamespaceProperties & GetProperties() const
Definition Namespace.h:135
void SetArn(const char *value)
Definition Namespace.h:67
const Aws::String & GetName() const
Definition Namespace.h:77
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition Namespace.h:152
const Aws::String & GetCreatorRequestId() const
Definition Namespace.h:163
Namespace & WithCreateDate(const Aws::Utils::DateTime &value)
Definition Namespace.h:154
void SetDescription(const char *value)
Definition Namespace.h:114
const Aws::String & GetArn() const
Definition Namespace.h:63
const Aws::String & GetId() const
Definition Namespace.h:48
AWS_SERVICEDISCOVERY_API Namespace()
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition Namespace.h:153
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue