AWS SDK for C++  1.9.104
AWS SDK for C++
CreatePublicDnsNamespaceRequest.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 "CreatePublicDnsNamespace"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline CreatePublicDnsNamespaceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline CreatePublicDnsNamespaceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline CreatePublicDnsNamespaceRequest& WithName(const char* value) { SetName(value); return *this;}
80 
81 
88  inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
89 
96  inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
97 
104  inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
105 
112  inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
113 
120  inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
121 
128  inline CreatePublicDnsNamespaceRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
129 
136  inline CreatePublicDnsNamespaceRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
137 
144  inline CreatePublicDnsNamespaceRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
145 
146 
150  inline const Aws::String& GetDescription() const{ return m_description; }
151 
155  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
156 
160  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
161 
165  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
166 
170  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
171 
175  inline CreatePublicDnsNamespaceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
176 
180  inline CreatePublicDnsNamespaceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
181 
185  inline CreatePublicDnsNamespaceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
186 
187 
193  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
194 
200  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
201 
207  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
208 
214  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
215 
221  inline CreatePublicDnsNamespaceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
222 
228  inline CreatePublicDnsNamespaceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
229 
235  inline CreatePublicDnsNamespaceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
236 
242  inline CreatePublicDnsNamespaceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
243 
244 
248  inline const PublicDnsNamespaceProperties& GetProperties() const{ return m_properties; }
249 
253  inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
254 
258  inline void SetProperties(const PublicDnsNamespaceProperties& value) { m_propertiesHasBeenSet = true; m_properties = value; }
259 
263  inline void SetProperties(PublicDnsNamespaceProperties&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
264 
268  inline CreatePublicDnsNamespaceRequest& WithProperties(const PublicDnsNamespaceProperties& value) { SetProperties(value); return *this;}
269 
273  inline CreatePublicDnsNamespaceRequest& WithProperties(PublicDnsNamespaceProperties&& value) { SetProperties(std::move(value)); return *this;}
274 
275  private:
276 
277  Aws::String m_name;
278  bool m_nameHasBeenSet;
279 
280  Aws::String m_creatorRequestId;
281  bool m_creatorRequestIdHasBeenSet;
282 
283  Aws::String m_description;
284  bool m_descriptionHasBeenSet;
285 
286  Aws::Vector<Tag> m_tags;
287  bool m_tagsHasBeenSet;
288 
289  PublicDnsNamespaceProperties m_properties;
290  bool m_propertiesHasBeenSet;
291  };
292 
293 } // namespace Model
294 } // namespace ServiceDiscovery
295 } // namespace Aws
ServiceDiscoveryRequest.h
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreatePublicDnsNamespaceRequest.h:49
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreatePublicDnsNamespaceRequest.h:150
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::CreatorRequestIdHasBeenSet
bool CreatorRequestIdHasBeenSet() const
Definition: CreatePublicDnsNamespaceRequest.h:96
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::WithCreatorRequestId
CreatePublicDnsNamespaceRequest & WithCreatorRequestId(Aws::String &&value)
Definition: CreatePublicDnsNamespaceRequest.h:136
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::GetCreatorRequestId
const Aws::String & GetCreatorRequestId() const
Definition: CreatePublicDnsNamespaceRequest.h:88
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreatePublicDnsNamespaceRequest.h:160
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::WithCreatorRequestId
CreatePublicDnsNamespaceRequest & WithCreatorRequestId(const Aws::String &value)
Definition: CreatePublicDnsNamespaceRequest.h:128
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::WithTags
CreatePublicDnsNamespaceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreatePublicDnsNamespaceRequest.h:228
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::SetCreatorRequestId
void SetCreatorRequestId(const char *value)
Definition: CreatePublicDnsNamespaceRequest.h:120
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::SetName
void SetName(const Aws::String &value)
Definition: CreatePublicDnsNamespaceRequest.h:54
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest
Definition: CreatePublicDnsNamespaceRequest.h:26
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreatePublicDnsNamespaceRequest.h:207
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::WithName
CreatePublicDnsNamespaceRequest & WithName(Aws::String &&value)
Definition: CreatePublicDnsNamespaceRequest.h:74
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreatePublicDnsNamespaceRequest.h:165
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::WithCreatorRequestId
CreatePublicDnsNamespaceRequest & WithCreatorRequestId(const char *value)
Definition: CreatePublicDnsNamespaceRequest.h:144
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::SetProperties
void SetProperties(PublicDnsNamespaceProperties &&value)
Definition: CreatePublicDnsNamespaceRequest.h:263
AWSVector.h
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::GetProperties
const PublicDnsNamespaceProperties & GetProperties() const
Definition: CreatePublicDnsNamespaceRequest.h:248
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::WithProperties
CreatePublicDnsNamespaceRequest & WithProperties(const PublicDnsNamespaceProperties &value)
Definition: CreatePublicDnsNamespaceRequest.h:268
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreatePublicDnsNamespaceRequest.h:193
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::CreatePublicDnsNamespaceRequest
CreatePublicDnsNamespaceRequest()
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::SetProperties
void SetProperties(const PublicDnsNamespaceProperties &value)
Definition: CreatePublicDnsNamespaceRequest.h:258
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::SetCreatorRequestId
void SetCreatorRequestId(Aws::String &&value)
Definition: CreatePublicDnsNamespaceRequest.h:112
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::GetName
const Aws::String & GetName() const
Definition: CreatePublicDnsNamespaceRequest.h:44
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::WithDescription
CreatePublicDnsNamespaceRequest & WithDescription(const char *value)
Definition: CreatePublicDnsNamespaceRequest.h:185
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ServiceDiscovery::ServiceDiscoveryRequest
Definition: ServiceDiscoveryRequest.h:17
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreatePublicDnsNamespaceRequest.h:155
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::SetName
void SetName(Aws::String &&value)
Definition: CreatePublicDnsNamespaceRequest.h:59
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::SetDescription
void SetDescription(const char *value)
Definition: CreatePublicDnsNamespaceRequest.h:170
AWSString.h
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::WithDescription
CreatePublicDnsNamespaceRequest & WithDescription(const Aws::String &value)
Definition: CreatePublicDnsNamespaceRequest.h:175
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreatePublicDnsNamespaceRequest.h:214
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::WithDescription
CreatePublicDnsNamespaceRequest & WithDescription(Aws::String &&value)
Definition: CreatePublicDnsNamespaceRequest.h:180
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreatePublicDnsNamespaceRequest.h:34
Aws::ServiceDiscovery::Model::Tag
Definition: Tag.h:33
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::PropertiesHasBeenSet
bool PropertiesHasBeenSet() const
Definition: CreatePublicDnsNamespaceRequest.h:253
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::WithName
CreatePublicDnsNamespaceRequest & WithName(const Aws::String &value)
Definition: CreatePublicDnsNamespaceRequest.h:69
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::SetName
void SetName(const char *value)
Definition: CreatePublicDnsNamespaceRequest.h:64
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::WithProperties
CreatePublicDnsNamespaceRequest & WithProperties(PublicDnsNamespaceProperties &&value)
Definition: CreatePublicDnsNamespaceRequest.h:273
Aws
Definition: AccessManagementClient.h:15
PublicDnsNamespaceProperties.h
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::WithName
CreatePublicDnsNamespaceRequest & WithName(const char *value)
Definition: CreatePublicDnsNamespaceRequest.h:79
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::SetCreatorRequestId
void SetCreatorRequestId(const Aws::String &value)
Definition: CreatePublicDnsNamespaceRequest.h:104
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::AddTags
CreatePublicDnsNamespaceRequest & AddTags(const Tag &value)
Definition: CreatePublicDnsNamespaceRequest.h:235
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::WithTags
CreatePublicDnsNamespaceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreatePublicDnsNamespaceRequest.h:221
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreatePublicDnsNamespaceRequest.h:200
UUID.h
Aws::ServiceDiscovery::Model::PublicDnsNamespaceProperties
Definition: PublicDnsNamespaceProperties.h:32
Aws::ServiceDiscovery::Model::CreatePublicDnsNamespaceRequest::AddTags
CreatePublicDnsNamespaceRequest & AddTags(Tag &&value)
Definition: CreatePublicDnsNamespaceRequest.h:242
Tag.h