AWS SDK for C++  1.9.131
AWS SDK for C++
CreateMeshRequest.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 AppMesh
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CreateMesh"; }
38 
39  Aws::String SerializePayload() const override;
40 
41 
47  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
48 
54  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
55 
61  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
62 
68  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
69 
75  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
76 
82  inline CreateMeshRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
83 
89  inline CreateMeshRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
90 
96  inline CreateMeshRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
97 
98 
102  inline const Aws::String& GetMeshName() const{ return m_meshName; }
103 
107  inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
108 
112  inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; }
113 
117  inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); }
118 
122  inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); }
123 
127  inline CreateMeshRequest& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
128 
132  inline CreateMeshRequest& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
133 
137  inline CreateMeshRequest& WithMeshName(const char* value) { SetMeshName(value); return *this;}
138 
139 
143  inline const MeshSpec& GetSpec() const{ return m_spec; }
144 
148  inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
149 
153  inline void SetSpec(const MeshSpec& value) { m_specHasBeenSet = true; m_spec = value; }
154 
158  inline void SetSpec(MeshSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
159 
163  inline CreateMeshRequest& WithSpec(const MeshSpec& value) { SetSpec(value); return *this;}
164 
168  inline CreateMeshRequest& WithSpec(MeshSpec&& value) { SetSpec(std::move(value)); return *this;}
169 
170 
177  inline const Aws::Vector<TagRef>& GetTags() const{ return m_tags; }
178 
185  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
186 
193  inline void SetTags(const Aws::Vector<TagRef>& value) { m_tagsHasBeenSet = true; m_tags = value; }
194 
201  inline void SetTags(Aws::Vector<TagRef>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
202 
209  inline CreateMeshRequest& WithTags(const Aws::Vector<TagRef>& value) { SetTags(value); return *this;}
210 
217  inline CreateMeshRequest& WithTags(Aws::Vector<TagRef>&& value) { SetTags(std::move(value)); return *this;}
218 
225  inline CreateMeshRequest& AddTags(const TagRef& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
226 
233  inline CreateMeshRequest& AddTags(TagRef&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
234 
235  private:
236 
237  Aws::String m_clientToken;
238  bool m_clientTokenHasBeenSet;
239 
240  Aws::String m_meshName;
241  bool m_meshNameHasBeenSet;
242 
243  MeshSpec m_spec;
244  bool m_specHasBeenSet;
245 
246  Aws::Vector<TagRef> m_tags;
247  bool m_tagsHasBeenSet;
248  };
249 
250 } // namespace Model
251 } // namespace AppMesh
252 } // namespace Aws
Aws::AppMesh::Model::CreateMeshRequest::WithMeshName
CreateMeshRequest & WithMeshName(Aws::String &&value)
Definition: CreateMeshRequest.h:132
Aws::AppMesh::Model::CreateMeshRequest::MeshNameHasBeenSet
bool MeshNameHasBeenSet() const
Definition: CreateMeshRequest.h:107
Aws::AppMesh::Model::CreateMeshRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateMeshRequest.h:61
TagRef.h
Aws::AppMesh::Model::TagRef
Definition: TagRef.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppMesh::Model::CreateMeshRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateMeshRequest.h:54
Aws::AppMesh::Model::CreateMeshRequest::WithTags
CreateMeshRequest & WithTags(Aws::Vector< TagRef > &&value)
Definition: CreateMeshRequest.h:217
Aws::AppMesh::Model::CreateMeshRequest::SetMeshName
void SetMeshName(const Aws::String &value)
Definition: CreateMeshRequest.h:112
AppMesh_EXPORTS.h
MeshSpec.h
AWSVector.h
Aws::AppMesh::Model::CreateMeshRequest::WithClientToken
CreateMeshRequest & WithClientToken(const char *value)
Definition: CreateMeshRequest.h:96
Aws::AppMesh::Model::CreateMeshRequest::AddTags
CreateMeshRequest & AddTags(const TagRef &value)
Definition: CreateMeshRequest.h:225
Aws::AppMesh::Model::CreateMeshRequest::WithSpec
CreateMeshRequest & WithSpec(const MeshSpec &value)
Definition: CreateMeshRequest.h:163
Aws::AppMesh::Model::CreateMeshRequest::SetMeshName
void SetMeshName(Aws::String &&value)
Definition: CreateMeshRequest.h:117
Aws::AppMesh::Model::CreateMeshRequest::SetSpec
void SetSpec(const MeshSpec &value)
Definition: CreateMeshRequest.h:153
Aws::AppMesh::Model::CreateMeshRequest::GetTags
const Aws::Vector< TagRef > & GetTags() const
Definition: CreateMeshRequest.h:177
Aws::AppMesh::Model::CreateMeshRequest::SetTags
void SetTags(Aws::Vector< TagRef > &&value)
Definition: CreateMeshRequest.h:201
Aws::AppMesh::Model::CreateMeshRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateMeshRequest.h:37
Aws::AppMesh::AppMeshRequest
Definition: AppMeshRequest.h:17
Aws::AppMesh::Model::CreateMeshRequest::GetSpec
const MeshSpec & GetSpec() const
Definition: CreateMeshRequest.h:143
Aws::AppMesh::Model::CreateMeshRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateMeshRequest.h:185
Aws::AppMesh::Model::CreateMeshRequest::WithMeshName
CreateMeshRequest & WithMeshName(const Aws::String &value)
Definition: CreateMeshRequest.h:127
Aws::AppMesh::Model::CreateMeshRequest::AddTags
CreateMeshRequest & AddTags(TagRef &&value)
Definition: CreateMeshRequest.h:233
Aws::AppMesh::Model::CreateMeshRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateMeshRequest.h:75
Aws::AppMesh::Model::CreateMeshRequest::SetMeshName
void SetMeshName(const char *value)
Definition: CreateMeshRequest.h:122
AWSString.h
Aws::AppMesh::Model::CreateMeshRequest::SetTags
void SetTags(const Aws::Vector< TagRef > &value)
Definition: CreateMeshRequest.h:193
Aws::AppMesh::Model::CreateMeshRequest
Definition: CreateMeshRequest.h:29
Aws::AppMesh::Model::CreateMeshRequest::WithClientToken
CreateMeshRequest & WithClientToken(Aws::String &&value)
Definition: CreateMeshRequest.h:89
Aws::AppMesh::Model::MeshSpec
Definition: MeshSpec.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::CreateMeshRequest::SetSpec
void SetSpec(MeshSpec &&value)
Definition: CreateMeshRequest.h:158
Aws::AppMesh::Model::CreateMeshRequest::CreateMeshRequest
CreateMeshRequest()
Aws::AppMesh::Model::CreateMeshRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppMesh::Model::CreateMeshRequest::WithSpec
CreateMeshRequest & WithSpec(MeshSpec &&value)
Definition: CreateMeshRequest.h:168
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::CreateMeshRequest::WithClientToken
CreateMeshRequest & WithClientToken(const Aws::String &value)
Definition: CreateMeshRequest.h:82
Aws::AppMesh::Model::CreateMeshRequest::SpecHasBeenSet
bool SpecHasBeenSet() const
Definition: CreateMeshRequest.h:148
Aws::AppMesh::Model::CreateMeshRequest::WithTags
CreateMeshRequest & WithTags(const Aws::Vector< TagRef > &value)
Definition: CreateMeshRequest.h:209
UUID.h
Aws::AppMesh::Model::CreateMeshRequest::GetMeshName
const Aws::String & GetMeshName() const
Definition: CreateMeshRequest.h:102
Aws::AppMesh::Model::CreateMeshRequest::WithMeshName
CreateMeshRequest & WithMeshName(const char *value)
Definition: CreateMeshRequest.h:137
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::CreateMeshRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateMeshRequest.h:47
AppMeshRequest.h
Aws::AppMesh::Model::CreateMeshRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateMeshRequest.h:68