AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateMeshRequest.h
1
6#pragma once
7#include <aws/appmesh/AppMeshRequest.h>
8#include <aws/appmesh/AppMesh_EXPORTS.h>
9#include <aws/appmesh/model/MeshSpec.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AppMesh {
17namespace Model {
18
25 public:
26 AWS_APPMESH_API UpdateMeshRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateMesh"; }
33
34 AWS_APPMESH_API Aws::String SerializePayload() const override;
35
37
42 inline const Aws::String& GetClientToken() const { return m_clientToken; }
43 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
44 template <typename ClientTokenT = Aws::String>
45 void SetClientToken(ClientTokenT&& value) {
46 m_clientTokenHasBeenSet = true;
47 m_clientToken = std::forward<ClientTokenT>(value);
48 }
49 template <typename ClientTokenT = Aws::String>
50 UpdateMeshRequest& WithClientToken(ClientTokenT&& value) {
51 SetClientToken(std::forward<ClientTokenT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetMeshName() const { return m_meshName; }
61 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
62 template <typename MeshNameT = Aws::String>
63 void SetMeshName(MeshNameT&& value) {
64 m_meshNameHasBeenSet = true;
65 m_meshName = std::forward<MeshNameT>(value);
66 }
67 template <typename MeshNameT = Aws::String>
68 UpdateMeshRequest& WithMeshName(MeshNameT&& value) {
69 SetMeshName(std::forward<MeshNameT>(value));
70 return *this;
71 }
73
75
78 inline const MeshSpec& GetSpec() const { return m_spec; }
79 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
80 template <typename SpecT = MeshSpec>
81 void SetSpec(SpecT&& value) {
82 m_specHasBeenSet = true;
83 m_spec = std::forward<SpecT>(value);
84 }
85 template <typename SpecT = MeshSpec>
86 UpdateMeshRequest& WithSpec(SpecT&& value) {
87 SetSpec(std::forward<SpecT>(value));
88 return *this;
89 }
91 private:
93
94 Aws::String m_meshName;
95
96 MeshSpec m_spec;
97 bool m_clientTokenHasBeenSet = true;
98 bool m_meshNameHasBeenSet = false;
99 bool m_specHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace AppMesh
104} // namespace Aws
const Aws::String & GetClientToken() const
void SetClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
UpdateMeshRequest & WithMeshName(MeshNameT &&value)
AWS_APPMESH_API Aws::String SerializePayload() const override
const Aws::String & GetMeshName() const
AWS_APPMESH_API UpdateMeshRequest()=default
UpdateMeshRequest & WithClientToken(ClientTokenT &&value)
UpdateMeshRequest & WithSpec(SpecT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String