AWS SDK for C++  1.8.95
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
CreateMeshRequest & WithClientToken(Aws::String &&value)
CreateMeshRequest & WithSpec(const MeshSpec &value)
const Aws::Vector< TagRef > & GetTags() const
virtual const char * GetServiceRequestName() const override
void SetTags(const Aws::Vector< TagRef > &value)
void SetSpec(const MeshSpec &value)
CreateMeshRequest & WithMeshName(const char *value)
CreateMeshRequest & WithClientToken(const Aws::String &value)
void SetTags(Aws::Vector< TagRef > &&value)
void SetClientToken(Aws::String &&value)
const Aws::String & GetMeshName() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateMeshRequest & AddTags(const TagRef &value)
CreateMeshRequest & WithMeshName(Aws::String &&value)
CreateMeshRequest & WithSpec(MeshSpec &&value)
CreateMeshRequest & WithMeshName(const Aws::String &value)
void SetClientToken(const Aws::String &value)
CreateMeshRequest & WithTags(const Aws::Vector< TagRef > &value)
CreateMeshRequest & WithClientToken(const char *value)
const Aws::String & GetClientToken() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetMeshName(const Aws::String &value)
CreateMeshRequest & WithTags(Aws::Vector< TagRef > &&value)
CreateMeshRequest & AddTags(TagRef &&value)
#define AWS_APPMESH_API