AWS SDK for C++  1.9.40
AWS SDK for C++
CreateHttpNamespaceRequest.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 "CreateHttpNamespace"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetName() const{ return m_name; }
44 
48  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 
53  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 
58  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 
63  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 
68  inline CreateHttpNamespaceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
69 
73  inline CreateHttpNamespaceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
74 
78  inline CreateHttpNamespaceRequest& WithName(const char* value) { SetName(value); return *this;}
79 
80 
87  inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
88 
95  inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
96 
103  inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
104 
111  inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
112 
119  inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
120 
127  inline CreateHttpNamespaceRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
128 
135  inline CreateHttpNamespaceRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
136 
143  inline CreateHttpNamespaceRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
144 
145 
149  inline const Aws::String& GetDescription() const{ return m_description; }
150 
154  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
155 
159  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
160 
164  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
165 
169  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
170 
174  inline CreateHttpNamespaceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
175 
179  inline CreateHttpNamespaceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
180 
184  inline CreateHttpNamespaceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
185 
186 
192  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
193 
199  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
200 
206  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
207 
213  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
214 
220  inline CreateHttpNamespaceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
221 
227  inline CreateHttpNamespaceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
228 
234  inline CreateHttpNamespaceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
235 
241  inline CreateHttpNamespaceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
242 
243  private:
244 
245  Aws::String m_name;
246  bool m_nameHasBeenSet;
247 
248  Aws::String m_creatorRequestId;
249  bool m_creatorRequestIdHasBeenSet;
250 
251  Aws::String m_description;
252  bool m_descriptionHasBeenSet;
253 
254  Aws::Vector<Tag> m_tags;
255  bool m_tagsHasBeenSet;
256  };
257 
258 } // namespace Model
259 } // namespace ServiceDiscovery
260 } // namespace Aws
ServiceDiscoveryRequest.h
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateHttpNamespaceRequest.h:213
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::WithCreatorRequestId
CreateHttpNamespaceRequest & WithCreatorRequestId(const Aws::String &value)
Definition: CreateHttpNamespaceRequest.h:127
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::SetCreatorRequestId
void SetCreatorRequestId(const char *value)
Definition: CreateHttpNamespaceRequest.h:119
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::WithName
CreateHttpNamespaceRequest & WithName(Aws::String &&value)
Definition: CreateHttpNamespaceRequest.h:73
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::GetCreatorRequestId
const Aws::String & GetCreatorRequestId() const
Definition: CreateHttpNamespaceRequest.h:87
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::CreatorRequestIdHasBeenSet
bool CreatorRequestIdHasBeenSet() const
Definition: CreateHttpNamespaceRequest.h:95
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateHttpNamespaceRequest.h:159
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateHttpNamespaceRequest.h:192
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::WithCreatorRequestId
CreateHttpNamespaceRequest & WithCreatorRequestId(const char *value)
Definition: CreateHttpNamespaceRequest.h:143
AWSVector.h
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateHttpNamespaceRequest.h:164
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::SetCreatorRequestId
void SetCreatorRequestId(const Aws::String &value)
Definition: CreateHttpNamespaceRequest.h:103
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::WithName
CreateHttpNamespaceRequest & WithName(const char *value)
Definition: CreateHttpNamespaceRequest.h:78
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::WithDescription
CreateHttpNamespaceRequest & WithDescription(Aws::String &&value)
Definition: CreateHttpNamespaceRequest.h:179
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::WithName
CreateHttpNamespaceRequest & WithName(const Aws::String &value)
Definition: CreateHttpNamespaceRequest.h:68
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::WithDescription
CreateHttpNamespaceRequest & WithDescription(const char *value)
Definition: CreateHttpNamespaceRequest.h:184
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::SetName
void SetName(const char *value)
Definition: CreateHttpNamespaceRequest.h:63
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateHttpNamespaceRequest.h:169
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateHttpNamespaceRequest.h:206
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateHttpNamespaceRequest.h:199
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateHttpNamespaceRequest.h:58
Aws::ServiceDiscovery::ServiceDiscoveryRequest
Definition: ServiceDiscoveryRequest.h:17
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::AddTags
CreateHttpNamespaceRequest & AddTags(Tag &&value)
Definition: CreateHttpNamespaceRequest.h:241
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::AddTags
CreateHttpNamespaceRequest & AddTags(const Tag &value)
Definition: CreateHttpNamespaceRequest.h:234
AWSString.h
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::CreateHttpNamespaceRequest
CreateHttpNamespaceRequest()
Aws::ServiceDiscovery::Model::Tag
Definition: Tag.h:33
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateHttpNamespaceRequest.h:149
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateHttpNamespaceRequest.h:33
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::SetCreatorRequestId
void SetCreatorRequestId(Aws::String &&value)
Definition: CreateHttpNamespaceRequest.h:111
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest
Definition: CreateHttpNamespaceRequest.h:25
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::WithCreatorRequestId
CreateHttpNamespaceRequest & WithCreatorRequestId(Aws::String &&value)
Definition: CreateHttpNamespaceRequest.h:135
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::GetName
const Aws::String & GetName() const
Definition: CreateHttpNamespaceRequest.h:43
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateHttpNamespaceRequest.h:53
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::WithTags
CreateHttpNamespaceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateHttpNamespaceRequest.h:220
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateHttpNamespaceRequest.h:154
UUID.h
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::WithTags
CreateHttpNamespaceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateHttpNamespaceRequest.h:227
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::WithDescription
CreateHttpNamespaceRequest & WithDescription(const Aws::String &value)
Definition: CreateHttpNamespaceRequest.h:174
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateHttpNamespaceRequest.h:48
Tag.h
Aws::ServiceDiscovery::Model::CreateHttpNamespaceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override