AWS SDK for C++  1.9.16
AWS SDK for C++
UpdateMeshRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 #include <aws/core/utils/UUID.h>
13 
14 namespace Aws
15 {
16 namespace AppMesh
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "UpdateMesh"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
45  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
46 
52  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
53 
59  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
60 
66  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
67 
73  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
74 
80  inline UpdateMeshRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
81 
87  inline UpdateMeshRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
88 
94  inline UpdateMeshRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
95 
96 
100  inline const Aws::String& GetMeshName() const{ return m_meshName; }
101 
105  inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
106 
110  inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; }
111 
115  inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); }
116 
120  inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); }
121 
125  inline UpdateMeshRequest& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
126 
130  inline UpdateMeshRequest& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
131 
135  inline UpdateMeshRequest& WithMeshName(const char* value) { SetMeshName(value); return *this;}
136 
137 
141  inline const MeshSpec& GetSpec() const{ return m_spec; }
142 
146  inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
147 
151  inline void SetSpec(const MeshSpec& value) { m_specHasBeenSet = true; m_spec = value; }
152 
156  inline void SetSpec(MeshSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
157 
161  inline UpdateMeshRequest& WithSpec(const MeshSpec& value) { SetSpec(value); return *this;}
162 
166  inline UpdateMeshRequest& WithSpec(MeshSpec&& value) { SetSpec(std::move(value)); return *this;}
167 
168  private:
169 
170  Aws::String m_clientToken;
171  bool m_clientTokenHasBeenSet;
172 
173  Aws::String m_meshName;
174  bool m_meshNameHasBeenSet;
175 
176  MeshSpec m_spec;
177  bool m_specHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace AppMesh
182 } // namespace Aws
Aws::AppMesh::Model::UpdateMeshRequest
Definition: UpdateMeshRequest.h:27
Aws::AppMesh::Model::UpdateMeshRequest::SetSpec
void SetSpec(const MeshSpec &value)
Definition: UpdateMeshRequest.h:151
Aws::AppMesh::Model::UpdateMeshRequest::GetSpec
const MeshSpec & GetSpec() const
Definition: UpdateMeshRequest.h:141
Aws::AppMesh::Model::UpdateMeshRequest::WithSpec
UpdateMeshRequest & WithSpec(const MeshSpec &value)
Definition: UpdateMeshRequest.h:161
Aws::AppMesh::Model::UpdateMeshRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateMeshRequest.h:35
Aws::AppMesh::Model::UpdateMeshRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: UpdateMeshRequest.h:66
Aws::AppMesh::Model::UpdateMeshRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: UpdateMeshRequest.h:45
Aws::AppMesh::Model::UpdateMeshRequest::WithMeshName
UpdateMeshRequest & WithMeshName(const char *value)
Definition: UpdateMeshRequest.h:135
Aws::AppMesh::Model::UpdateMeshRequest::WithMeshName
UpdateMeshRequest & WithMeshName(const Aws::String &value)
Definition: UpdateMeshRequest.h:125
Aws::AppMesh::Model::UpdateMeshRequest::SetClientToken
void SetClientToken(const char *value)
Definition: UpdateMeshRequest.h:73
Aws::AppMesh::Model::UpdateMeshRequest::WithClientToken
UpdateMeshRequest & WithClientToken(Aws::String &&value)
Definition: UpdateMeshRequest.h:87
AppMesh_EXPORTS.h
MeshSpec.h
Aws::AppMesh::Model::UpdateMeshRequest::UpdateMeshRequest
UpdateMeshRequest()
Aws::AppMesh::Model::UpdateMeshRequest::WithClientToken
UpdateMeshRequest & WithClientToken(const char *value)
Definition: UpdateMeshRequest.h:94
Aws::AppMesh::Model::UpdateMeshRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: UpdateMeshRequest.h:52
Aws::AppMesh::Model::UpdateMeshRequest::MeshNameHasBeenSet
bool MeshNameHasBeenSet() const
Definition: UpdateMeshRequest.h:105
Aws::AppMesh::AppMeshRequest
Definition: AppMeshRequest.h:17
Aws::AppMesh::Model::UpdateMeshRequest::WithClientToken
UpdateMeshRequest & WithClientToken(const Aws::String &value)
Definition: UpdateMeshRequest.h:80
Aws::AppMesh::Model::UpdateMeshRequest::GetMeshName
const Aws::String & GetMeshName() const
Definition: UpdateMeshRequest.h:100
Aws::AppMesh::Model::UpdateMeshRequest::SetMeshName
void SetMeshName(const char *value)
Definition: UpdateMeshRequest.h:120
Aws::AppMesh::Model::UpdateMeshRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppMesh::Model::UpdateMeshRequest::WithSpec
UpdateMeshRequest & WithSpec(MeshSpec &&value)
Definition: UpdateMeshRequest.h:166
AWSString.h
Aws::AppMesh::Model::UpdateMeshRequest::SetMeshName
void SetMeshName(Aws::String &&value)
Definition: UpdateMeshRequest.h:115
Aws::AppMesh::Model::UpdateMeshRequest::SetSpec
void SetSpec(MeshSpec &&value)
Definition: UpdateMeshRequest.h:156
Aws::AppMesh::Model::UpdateMeshRequest::SpecHasBeenSet
bool SpecHasBeenSet() const
Definition: UpdateMeshRequest.h:146
Aws::AppMesh::Model::MeshSpec
Definition: MeshSpec.h:33
Aws::AppMesh::Model::UpdateMeshRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: UpdateMeshRequest.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::UpdateMeshRequest::SetMeshName
void SetMeshName(const Aws::String &value)
Definition: UpdateMeshRequest.h:110
Aws::AppMesh::Model::UpdateMeshRequest::WithMeshName
UpdateMeshRequest & WithMeshName(Aws::String &&value)
Definition: UpdateMeshRequest.h:130
UUID.h
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
AppMeshRequest.h