AWS SDK for C++  1.9.40
AWS SDK for C++
CreatePrivateDnsNamespaceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace ServiceDiscovery
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreatePrivateDnsNamespace"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
59  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 
66  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 
73  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 
80  inline CreatePrivateDnsNamespaceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
81 
87  inline CreatePrivateDnsNamespaceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
88 
94  inline CreatePrivateDnsNamespaceRequest& WithName(const char* value) { SetName(value); return *this;}
95 
96 
103  inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
104 
111  inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
112 
119  inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
120 
127  inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
128 
135  inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
136 
143  inline CreatePrivateDnsNamespaceRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
144 
151  inline CreatePrivateDnsNamespaceRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
152 
159  inline CreatePrivateDnsNamespaceRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
160 
161 
165  inline const Aws::String& GetDescription() const{ return m_description; }
166 
170  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
171 
175  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
176 
180  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
181 
185  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
186 
190  inline CreatePrivateDnsNamespaceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
191 
195  inline CreatePrivateDnsNamespaceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
196 
200  inline CreatePrivateDnsNamespaceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
201 
202 
206  inline const Aws::String& GetVpc() const{ return m_vpc; }
207 
211  inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
212 
216  inline void SetVpc(const Aws::String& value) { m_vpcHasBeenSet = true; m_vpc = value; }
217 
221  inline void SetVpc(Aws::String&& value) { m_vpcHasBeenSet = true; m_vpc = std::move(value); }
222 
226  inline void SetVpc(const char* value) { m_vpcHasBeenSet = true; m_vpc.assign(value); }
227 
231  inline CreatePrivateDnsNamespaceRequest& WithVpc(const Aws::String& value) { SetVpc(value); return *this;}
232 
236  inline CreatePrivateDnsNamespaceRequest& WithVpc(Aws::String&& value) { SetVpc(std::move(value)); return *this;}
237 
241  inline CreatePrivateDnsNamespaceRequest& WithVpc(const char* value) { SetVpc(value); return *this;}
242 
243 
249  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
250 
256  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
257 
263  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
264 
270  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
271 
277  inline CreatePrivateDnsNamespaceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
278 
284  inline CreatePrivateDnsNamespaceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
285 
291  inline CreatePrivateDnsNamespaceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
292 
298  inline CreatePrivateDnsNamespaceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
299 
300  private:
301 
302  Aws::String m_name;
303  bool m_nameHasBeenSet;
304 
305  Aws::String m_creatorRequestId;
306  bool m_creatorRequestIdHasBeenSet;
307 
308  Aws::String m_description;
309  bool m_descriptionHasBeenSet;
310 
311  Aws::String m_vpc;
312  bool m_vpcHasBeenSet;
313 
314  Aws::Vector<Tag> m_tags;
315  bool m_tagsHasBeenSet;
316  };
317 
318 } // namespace Model
319 } // namespace ServiceDiscovery
320 } // namespace Aws
ServiceDiscoveryRequest.h
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreatePrivateDnsNamespaceRequest.h:165
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetName
void SetName(const Aws::String &value)
Definition: CreatePrivateDnsNamespaceRequest.h:59
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:33
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:270
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:143
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithName
CreatePrivateDnsNamespaceRequest & WithName(const char *value)
Definition: CreatePrivateDnsNamespaceRequest.h:94
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetVpc
void SetVpc(const char *value)
Definition: CreatePrivateDnsNamespaceRequest.h:226
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetCreatorRequestId
void SetCreatorRequestId(const Aws::String &value)
Definition: CreatePrivateDnsNamespaceRequest.h:119
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::CreatorRequestIdHasBeenSet
bool CreatorRequestIdHasBeenSet() const
Definition: CreatePrivateDnsNamespaceRequest.h:111
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithTags
CreatePrivateDnsNamespaceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:284
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::VpcHasBeenSet
bool VpcHasBeenSet() const
Definition: CreatePrivateDnsNamespaceRequest.h:211
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithVpc
CreatePrivateDnsNamespaceRequest & WithVpc(Aws::String &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:236
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetName
void SetName(const char *value)
Definition: CreatePrivateDnsNamespaceRequest.h:73
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::GetVpc
const Aws::String & GetVpc() const
Definition: CreatePrivateDnsNamespaceRequest.h:206
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetName
void SetName(Aws::String &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:66
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::AddTags
CreatePrivateDnsNamespaceRequest & AddTags(Tag &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:298
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreatePrivateDnsNamespaceRequest.h:52
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreatePrivateDnsNamespaceRequest.h:170
AWSVector.h
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithTags
CreatePrivateDnsNamespaceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreatePrivateDnsNamespaceRequest.h:277
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetCreatorRequestId
void SetCreatorRequestId(const char *value)
Definition: CreatePrivateDnsNamespaceRequest.h:135
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithDescription
CreatePrivateDnsNamespaceRequest & WithDescription(const char *value)
Definition: CreatePrivateDnsNamespaceRequest.h:200
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreatePrivateDnsNamespaceRequest.h:263
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithCreatorRequestId
CreatePrivateDnsNamespaceRequest & WithCreatorRequestId(Aws::String &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:151
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetVpc
void SetVpc(Aws::String &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:221
Aws::ServiceDiscovery::ServiceDiscoveryRequest
Definition: ServiceDiscoveryRequest.h:17
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreatePrivateDnsNamespaceRequest.h:256
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetVpc
void SetVpc(const Aws::String &value)
Definition: CreatePrivateDnsNamespaceRequest.h:216
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetCreatorRequestId
void SetCreatorRequestId(Aws::String &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:127
AWSString.h
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::AddTags
CreatePrivateDnsNamespaceRequest & AddTags(const Tag &value)
Definition: CreatePrivateDnsNamespaceRequest.h:291
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreatePrivateDnsNamespaceRequest.h:249
Aws::ServiceDiscovery::Model::Tag
Definition: Tag.h:33
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest
Definition: CreatePrivateDnsNamespaceRequest.h:25
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithDescription
CreatePrivateDnsNamespaceRequest & WithDescription(Aws::String &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:195
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::CreatePrivateDnsNamespaceRequest
CreatePrivateDnsNamespaceRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithName
CreatePrivateDnsNamespaceRequest & WithName(Aws::String &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:87
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:231
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithDescription
CreatePrivateDnsNamespaceRequest & WithDescription(const Aws::String &value)
Definition: CreatePrivateDnsNamespaceRequest.h:190
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreatePrivateDnsNamespaceRequest.h:180
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithName
CreatePrivateDnsNamespaceRequest & WithName(const Aws::String &value)
Definition: CreatePrivateDnsNamespaceRequest.h:80
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetDescription
void SetDescription(const char *value)
Definition: CreatePrivateDnsNamespaceRequest.h:185
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithCreatorRequestId
CreatePrivateDnsNamespaceRequest & WithCreatorRequestId(const char *value)
Definition: CreatePrivateDnsNamespaceRequest.h:159
UUID.h
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::WithVpc
CreatePrivateDnsNamespaceRequest & WithVpc(const char *value)
Definition: CreatePrivateDnsNamespaceRequest.h:241
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::GetName
const Aws::String & GetName() const
Definition: CreatePrivateDnsNamespaceRequest.h:45
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreatePrivateDnsNamespaceRequest.h:175
Aws::ServiceDiscovery::Model::CreatePrivateDnsNamespaceRequest::GetCreatorRequestId
const Aws::String & GetCreatorRequestId() const
Definition: CreatePrivateDnsNamespaceRequest.h:103
Tag.h