AWS SDK for C++  1.9.70
AWS SDK for C++
UpdateVirtualServiceRequest.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 Http
17 {
18  class URI;
19 } //namespace Http
20 namespace AppMesh
21 {
22 namespace Model
23 {
24 
31  {
32  public:
34 
35  // Service request name is the Operation name which will send this request out,
36  // each operation should has unique request name, so that we can get operation's name from this request.
37  // Note: this is not true for response, multiple operations may have the same response name,
38  // so we can not get operation's name from response.
39  inline virtual const char* GetServiceRequestName() const override { return "UpdateVirtualService"; }
40 
41  Aws::String SerializePayload() const override;
42 
43  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44 
45 
51  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
52 
58  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
59 
65  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
66 
72  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
73 
79  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
80 
86  inline UpdateVirtualServiceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
87 
93  inline UpdateVirtualServiceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
94 
100  inline UpdateVirtualServiceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
101 
102 
106  inline const Aws::String& GetMeshName() const{ return m_meshName; }
107 
111  inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
112 
116  inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; }
117 
121  inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); }
122 
126  inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); }
127 
131  inline UpdateVirtualServiceRequest& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
132 
136  inline UpdateVirtualServiceRequest& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
137 
141  inline UpdateVirtualServiceRequest& WithMeshName(const char* value) { SetMeshName(value); return *this;}
142 
143 
151  inline const Aws::String& GetMeshOwner() const{ return m_meshOwner; }
152 
160  inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
161 
169  inline void SetMeshOwner(const Aws::String& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = value; }
170 
178  inline void SetMeshOwner(Aws::String&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::move(value); }
179 
187  inline void SetMeshOwner(const char* value) { m_meshOwnerHasBeenSet = true; m_meshOwner.assign(value); }
188 
196  inline UpdateVirtualServiceRequest& WithMeshOwner(const Aws::String& value) { SetMeshOwner(value); return *this;}
197 
205  inline UpdateVirtualServiceRequest& WithMeshOwner(Aws::String&& value) { SetMeshOwner(std::move(value)); return *this;}
206 
214  inline UpdateVirtualServiceRequest& WithMeshOwner(const char* value) { SetMeshOwner(value); return *this;}
215 
216 
221  inline const VirtualServiceSpec& GetSpec() const{ return m_spec; }
222 
227  inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
228 
233  inline void SetSpec(const VirtualServiceSpec& value) { m_specHasBeenSet = true; m_spec = value; }
234 
239  inline void SetSpec(VirtualServiceSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
240 
245  inline UpdateVirtualServiceRequest& WithSpec(const VirtualServiceSpec& value) { SetSpec(value); return *this;}
246 
251  inline UpdateVirtualServiceRequest& WithSpec(VirtualServiceSpec&& value) { SetSpec(std::move(value)); return *this;}
252 
253 
257  inline const Aws::String& GetVirtualServiceName() const{ return m_virtualServiceName; }
258 
262  inline bool VirtualServiceNameHasBeenSet() const { return m_virtualServiceNameHasBeenSet; }
263 
267  inline void SetVirtualServiceName(const Aws::String& value) { m_virtualServiceNameHasBeenSet = true; m_virtualServiceName = value; }
268 
272  inline void SetVirtualServiceName(Aws::String&& value) { m_virtualServiceNameHasBeenSet = true; m_virtualServiceName = std::move(value); }
273 
277  inline void SetVirtualServiceName(const char* value) { m_virtualServiceNameHasBeenSet = true; m_virtualServiceName.assign(value); }
278 
282  inline UpdateVirtualServiceRequest& WithVirtualServiceName(const Aws::String& value) { SetVirtualServiceName(value); return *this;}
283 
287  inline UpdateVirtualServiceRequest& WithVirtualServiceName(Aws::String&& value) { SetVirtualServiceName(std::move(value)); return *this;}
288 
292  inline UpdateVirtualServiceRequest& WithVirtualServiceName(const char* value) { SetVirtualServiceName(value); return *this;}
293 
294  private:
295 
296  Aws::String m_clientToken;
297  bool m_clientTokenHasBeenSet;
298 
299  Aws::String m_meshName;
300  bool m_meshNameHasBeenSet;
301 
302  Aws::String m_meshOwner;
303  bool m_meshOwnerHasBeenSet;
304 
305  VirtualServiceSpec m_spec;
306  bool m_specHasBeenSet;
307 
308  Aws::String m_virtualServiceName;
309  bool m_virtualServiceNameHasBeenSet;
310  };
311 
312 } // namespace Model
313 } // namespace AppMesh
314 } // namespace Aws
Aws::AppMesh::Model::UpdateVirtualServiceRequest::SetClientToken
void SetClientToken(const char *value)
Definition: UpdateVirtualServiceRequest.h:79
Aws::AppMesh::Model::UpdateVirtualServiceRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Http::URI
Definition: URI.h:32
Aws::AppMesh::Model::UpdateVirtualServiceRequest::WithMeshName
UpdateVirtualServiceRequest & WithMeshName(const Aws::String &value)
Definition: UpdateVirtualServiceRequest.h:131
Aws::AppMesh::Model::UpdateVirtualServiceRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: UpdateVirtualServiceRequest.h:72
Aws::AppMesh::Model::UpdateVirtualServiceRequest::SetVirtualServiceName
void SetVirtualServiceName(const char *value)
Definition: UpdateVirtualServiceRequest.h:277
Aws::AppMesh::Model::UpdateVirtualServiceRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: UpdateVirtualServiceRequest.h:58
Aws::AppMesh::Model::UpdateVirtualServiceRequest::SetMeshOwner
void SetMeshOwner(const char *value)
Definition: UpdateVirtualServiceRequest.h:187
Aws::AppMesh::Model::UpdateVirtualServiceRequest::WithVirtualServiceName
UpdateVirtualServiceRequest & WithVirtualServiceName(Aws::String &&value)
Definition: UpdateVirtualServiceRequest.h:287
Aws::AppMesh::Model::UpdateVirtualServiceRequest::SpecHasBeenSet
bool SpecHasBeenSet() const
Definition: UpdateVirtualServiceRequest.h:227
Aws::AppMesh::Model::UpdateVirtualServiceRequest::SetSpec
void SetSpec(VirtualServiceSpec &&value)
Definition: UpdateVirtualServiceRequest.h:239
Aws::AppMesh::Model::UpdateVirtualServiceRequest::SetSpec
void SetSpec(const VirtualServiceSpec &value)
Definition: UpdateVirtualServiceRequest.h:233
Aws::AppMesh::Model::UpdateVirtualServiceRequest::WithClientToken
UpdateVirtualServiceRequest & WithClientToken(const Aws::String &value)
Definition: UpdateVirtualServiceRequest.h:86
Aws::AppMesh::Model::UpdateVirtualServiceRequest::MeshNameHasBeenSet
bool MeshNameHasBeenSet() const
Definition: UpdateVirtualServiceRequest.h:111
AppMesh_EXPORTS.h
Aws::AppMesh::Model::UpdateVirtualServiceRequest
Definition: UpdateVirtualServiceRequest.h:31
Aws::AppMesh::Model::UpdateVirtualServiceRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: UpdateVirtualServiceRequest.h:65
Aws::AppMesh::Model::UpdateVirtualServiceRequest::WithVirtualServiceName
UpdateVirtualServiceRequest & WithVirtualServiceName(const char *value)
Definition: UpdateVirtualServiceRequest.h:292
Aws::AppMesh::Model::UpdateVirtualServiceRequest::SetMeshName
void SetMeshName(Aws::String &&value)
Definition: UpdateVirtualServiceRequest.h:121
Aws::AppMesh::AppMeshRequest
Definition: AppMeshRequest.h:17
Aws::AppMesh::Model::UpdateVirtualServiceRequest::WithClientToken
UpdateVirtualServiceRequest & WithClientToken(const char *value)
Definition: UpdateVirtualServiceRequest.h:100
Aws::AppMesh::Model::UpdateVirtualServiceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppMesh::Model::UpdateVirtualServiceRequest::WithSpec
UpdateVirtualServiceRequest & WithSpec(const VirtualServiceSpec &value)
Definition: UpdateVirtualServiceRequest.h:245
AWSString.h
Aws::AppMesh::Model::UpdateVirtualServiceRequest::GetMeshName
const Aws::String & GetMeshName() const
Definition: UpdateVirtualServiceRequest.h:106
Aws::AppMesh::Model::UpdateVirtualServiceRequest::SetVirtualServiceName
void SetVirtualServiceName(const Aws::String &value)
Definition: UpdateVirtualServiceRequest.h:267
Aws::AppMesh::Model::UpdateVirtualServiceRequest::WithMeshOwner
UpdateVirtualServiceRequest & WithMeshOwner(const char *value)
Definition: UpdateVirtualServiceRequest.h:214
Aws::AppMesh::Model::UpdateVirtualServiceRequest::WithMeshName
UpdateVirtualServiceRequest & WithMeshName(const char *value)
Definition: UpdateVirtualServiceRequest.h:141
Aws::AppMesh::Model::UpdateVirtualServiceRequest::WithClientToken
UpdateVirtualServiceRequest & WithClientToken(Aws::String &&value)
Definition: UpdateVirtualServiceRequest.h:93
Aws::AppMesh::Model::UpdateVirtualServiceRequest::SetMeshOwner
void SetMeshOwner(Aws::String &&value)
Definition: UpdateVirtualServiceRequest.h:178
Aws::AppMesh::Model::UpdateVirtualServiceRequest::SetMeshName
void SetMeshName(const char *value)
Definition: UpdateVirtualServiceRequest.h:126
Aws::AppMesh::Model::UpdateVirtualServiceRequest::GetVirtualServiceName
const Aws::String & GetVirtualServiceName() const
Definition: UpdateVirtualServiceRequest.h:257
Aws::AppMesh::Model::UpdateVirtualServiceRequest::WithMeshOwner
UpdateVirtualServiceRequest & WithMeshOwner(const Aws::String &value)
Definition: UpdateVirtualServiceRequest.h:196
Aws::AppMesh::Model::UpdateVirtualServiceRequest::UpdateVirtualServiceRequest
UpdateVirtualServiceRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::UpdateVirtualServiceRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: UpdateVirtualServiceRequest.h:51
Aws::AppMesh::Model::UpdateVirtualServiceRequest::SetMeshName
void SetMeshName(const Aws::String &value)
Definition: UpdateVirtualServiceRequest.h:116
Aws::AppMesh::Model::UpdateVirtualServiceRequest::GetSpec
const VirtualServiceSpec & GetSpec() const
Definition: UpdateVirtualServiceRequest.h:221
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::UpdateVirtualServiceRequest::MeshOwnerHasBeenSet
bool MeshOwnerHasBeenSet() const
Definition: UpdateVirtualServiceRequest.h:160
Aws::AppMesh::Model::UpdateVirtualServiceRequest::WithVirtualServiceName
UpdateVirtualServiceRequest & WithVirtualServiceName(const Aws::String &value)
Definition: UpdateVirtualServiceRequest.h:282
Aws::AppMesh::Model::VirtualServiceSpec
Definition: VirtualServiceSpec.h:33
Aws::AppMesh::Model::UpdateVirtualServiceRequest::VirtualServiceNameHasBeenSet
bool VirtualServiceNameHasBeenSet() const
Definition: UpdateVirtualServiceRequest.h:262
UUID.h
Aws::AppMesh::Model::UpdateVirtualServiceRequest::SetVirtualServiceName
void SetVirtualServiceName(Aws::String &&value)
Definition: UpdateVirtualServiceRequest.h:272
Aws::AppMesh::Model::UpdateVirtualServiceRequest::WithSpec
UpdateVirtualServiceRequest & WithSpec(VirtualServiceSpec &&value)
Definition: UpdateVirtualServiceRequest.h:251
Aws::AppMesh::Model::UpdateVirtualServiceRequest::GetMeshOwner
const Aws::String & GetMeshOwner() const
Definition: UpdateVirtualServiceRequest.h:151
Aws::AppMesh::Model::UpdateVirtualServiceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateVirtualServiceRequest.h:39
Aws::AppMesh::Model::UpdateVirtualServiceRequest::SetMeshOwner
void SetMeshOwner(const Aws::String &value)
Definition: UpdateVirtualServiceRequest.h:169
Aws::AppMesh::Model::UpdateVirtualServiceRequest::WithMeshOwner
UpdateVirtualServiceRequest & WithMeshOwner(Aws::String &&value)
Definition: UpdateVirtualServiceRequest.h:205
Aws::AppMesh::Model::UpdateVirtualServiceRequest::WithMeshName
UpdateVirtualServiceRequest & WithMeshName(Aws::String &&value)
Definition: UpdateVirtualServiceRequest.h:136
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
VirtualServiceSpec.h
AppMeshRequest.h