AWS SDK for C++  1.9.108
AWS SDK for C++
CreatePrivateDnsNamespaceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace ServiceDiscovery
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreatePrivateDnsNamespace"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
46  inline const Aws::String& GetName() const{ return m_name; }
47 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
60  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 
67  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 
74  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
75 
81  inline CreatePrivateDnsNamespaceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
82 
88  inline CreatePrivateDnsNamespaceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
89 
95  inline CreatePrivateDnsNamespaceRequest& WithName(const char* value) { SetName(value); return *this;}
96 
97 
104  inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
105 
112  inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
113 
120  inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
121 
128  inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
129 
136  inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
137 
144  inline CreatePrivateDnsNamespaceRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
145 
152  inline CreatePrivateDnsNamespaceRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
153 
160  inline CreatePrivateDnsNamespaceRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
161 
162 
166  inline const Aws::String& GetDescription() const{ return m_description; }
167 
171  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
172 
176  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
177 
181  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
182 
186  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
187 
191  inline CreatePrivateDnsNamespaceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
192 
196  inline CreatePrivateDnsNamespaceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
197 
201  inline CreatePrivateDnsNamespaceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
202 
203 
207  inline const Aws::String& GetVpc() const{ return m_vpc; }
208 
212  inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
213 
217  inline void SetVpc(const Aws::String& value) { m_vpcHasBeenSet = true; m_vpc = value; }
218 
222  inline void SetVpc(Aws::String&& value) { m_vpcHasBeenSet = true; m_vpc = std::move(value); }
223 
227  inline void SetVpc(const char* value) { m_vpcHasBeenSet = true; m_vpc.assign(value); }
228 
232  inline CreatePrivateDnsNamespaceRequest& WithVpc(const Aws::String& value) { SetVpc(value); return *this;}
233 
237  inline CreatePrivateDnsNamespaceRequest& WithVpc(Aws::String&& value) { SetVpc(std::move(value)); return *this;}
238 
242  inline CreatePrivateDnsNamespaceRequest& WithVpc(const char* value) { SetVpc(value); return *this;}
243 
244 
250  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
251 
257  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
258 
264  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
265 
271  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
272 
278  inline CreatePrivateDnsNamespaceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
279 
285  inline CreatePrivateDnsNamespaceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
286 
292  inline CreatePrivateDnsNamespaceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
293 
299  inline CreatePrivateDnsNamespaceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
300 
301 
305  inline const PrivateDnsNamespaceProperties& GetProperties() const{ return m_properties; }
306 
310  inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
311 
315  inline void SetProperties(const PrivateDnsNamespaceProperties& value) { m_propertiesHasBeenSet = true; m_properties = value; }
316 
320  inline void SetProperties(PrivateDnsNamespaceProperties&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
321 
325  inline CreatePrivateDnsNamespaceRequest& WithProperties(const PrivateDnsNamespaceProperties& value) { SetProperties(value); return *this;}
326 
330  inline CreatePrivateDnsNamespaceRequest& WithProperties(PrivateDnsNamespaceProperties&& value) { SetProperties(std::move(value)); return *this;}
331 
332  private:
333 
334  Aws::String m_name;
335  bool m_nameHasBeenSet;
336 
337  Aws::String m_creatorRequestId;
338  bool m_creatorRequestIdHasBeenSet;
339 
340  Aws::String m_description;
341  bool m_descriptionHasBeenSet;
342 
343  Aws::String m_vpc;
344  bool m_vpcHasBeenSet;
345 
346  Aws::Vector<Tag> m_tags;
347  bool m_tagsHasBeenSet;
348 
349  PrivateDnsNamespaceProperties m_properties;
350  bool m_propertiesHasBeenSet;
351  };
352 
353 } // namespace Model
354 } // namespace ServiceDiscovery
355 } // namespace Aws
ServiceDiscoveryRequest.h
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::GetProperties
const PrivateDnsNamespaceProperties & GetProperties() const
Definition: CreatePrivateDnsNamespaceRequest.h:305
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreatePrivateDnsNamespaceRequest.h:166
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetName
void SetName(const Aws::String &value)
Definition: CreatePrivateDnsNamespaceRequest.h:60
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreatePrivateDnsNamespaceRequest.h:34
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:271
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithCreatorRequestId
CreatePrivateDnsNamespaceRequest & WithCreatorRequestId(const Aws::String &value)
Definition: CreatePrivateDnsNamespaceRequest.h:144
PrivateDnsNamespaceProperties.h
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithName
CreatePrivateDnsNamespaceRequest & WithName(const char *value)
Definition: CreatePrivateDnsNamespaceRequest.h:95
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetVpc
void SetVpc(const char *value)
Definition: CreatePrivateDnsNamespaceRequest.h:227
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetCreatorRequestId
void SetCreatorRequestId(const Aws::String &value)
Definition: CreatePrivateDnsNamespaceRequest.h:120
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::CreatorRequestIdHasBeenSet
bool CreatorRequestIdHasBeenSet() const
Definition: CreatePrivateDnsNamespaceRequest.h:112
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithTags
CreatePrivateDnsNamespaceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:285
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::VpcHasBeenSet
bool VpcHasBeenSet() const
Definition: CreatePrivateDnsNamespaceRequest.h:212
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithVpc
CreatePrivateDnsNamespaceRequest & WithVpc(Aws::String &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:237
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetName
void SetName(const char *value)
Definition: CreatePrivateDnsNamespaceRequest.h:74
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::GetVpc
const Aws::String & GetVpc() const
Definition: CreatePrivateDnsNamespaceRequest.h:207
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetName
void SetName(Aws::String &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:67
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::AddTags
CreatePrivateDnsNamespaceRequest & AddTags(Tag &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:299
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreatePrivateDnsNamespaceRequest.h:53
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreatePrivateDnsNamespaceRequest.h:171
AWSVector.h
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithTags
CreatePrivateDnsNamespaceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreatePrivateDnsNamespaceRequest.h:278
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetCreatorRequestId
void SetCreatorRequestId(const char *value)
Definition: CreatePrivateDnsNamespaceRequest.h:136
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithDescription
CreatePrivateDnsNamespaceRequest & WithDescription(const char *value)
Definition: CreatePrivateDnsNamespaceRequest.h:201
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreatePrivateDnsNamespaceRequest.h:264
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetProperties
void SetProperties(const PrivateDnsNamespaceProperties &value)
Definition: CreatePrivateDnsNamespaceRequest.h:315
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithCreatorRequestId
CreatePrivateDnsNamespaceRequest & WithCreatorRequestId(Aws::String &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:152
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetVpc
void SetVpc(Aws::String &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:222
Aws::ServiceDiscovery::ServiceDiscoveryRequest
Definition: ServiceDiscoveryRequest.h:17
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::PropertiesHasBeenSet
bool PropertiesHasBeenSet() const
Definition: CreatePrivateDnsNamespaceRequest.h:310
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreatePrivateDnsNamespaceRequest.h:257
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetVpc
void SetVpc(const Aws::String &value)
Definition: CreatePrivateDnsNamespaceRequest.h:217
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithProperties
CreatePrivateDnsNamespaceRequest & WithProperties(PrivateDnsNamespaceProperties &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:330
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetCreatorRequestId
void SetCreatorRequestId(Aws::String &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:128
AWSString.h
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::AddTags
CreatePrivateDnsNamespaceRequest & AddTags(const Tag &value)
Definition: CreatePrivateDnsNamespaceRequest.h:292
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreatePrivateDnsNamespaceRequest.h:250
Aws::ServiceDiscovery::Model::Tag
Definition: Tag.h:33
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest
Definition: CreatePrivateDnsNamespaceRequest.h:26
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithDescription
CreatePrivateDnsNamespaceRequest & WithDescription(Aws::String &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:196
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::CreatePrivateDnsNamespaceRequest
CreatePrivateDnsNamespaceRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithProperties
CreatePrivateDnsNamespaceRequest & WithProperties(const PrivateDnsNamespaceProperties &value)
Definition: CreatePrivateDnsNamespaceRequest.h:325
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithName
CreatePrivateDnsNamespaceRequest & WithName(Aws::String &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:88
Aws::ServiceDiscovery::Model::PrivateDnsNamespaceProperties
Definition: PrivateDnsNamespaceProperties.h:32
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithVpc
CreatePrivateDnsNamespaceRequest & WithVpc(const Aws::String &value)
Definition: CreatePrivateDnsNamespaceRequest.h:232
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithDescription
CreatePrivateDnsNamespaceRequest & WithDescription(const Aws::String &value)
Definition: CreatePrivateDnsNamespaceRequest.h:191
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:181
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithName
CreatePrivateDnsNamespaceRequest & WithName(const Aws::String &value)
Definition: CreatePrivateDnsNamespaceRequest.h:81
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetDescription
void SetDescription(const char *value)
Definition: CreatePrivateDnsNamespaceRequest.h:186
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithCreatorRequestId
CreatePrivateDnsNamespaceRequest & WithCreatorRequestId(const char *value)
Definition: CreatePrivateDnsNamespaceRequest.h:160
UUID.h
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithVpc
CreatePrivateDnsNamespaceRequest & WithVpc(const char *value)
Definition: CreatePrivateDnsNamespaceRequest.h:242
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetProperties
void SetProperties(PrivateDnsNamespaceProperties &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:320
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::GetName
const Aws::String & GetName() const
Definition: CreatePrivateDnsNamespaceRequest.h:46
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreatePrivateDnsNamespaceRequest.h:176
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::GetCreatorRequestId
const Aws::String & GetCreatorRequestId() const
Definition: CreatePrivateDnsNamespaceRequest.h:104
Tag.h