AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateVirtualNodeRequest.h
1
6#pragma once
7#include <aws/appmesh/AppMeshRequest.h>
8#include <aws/appmesh/AppMesh_EXPORTS.h>
9#include <aws/appmesh/model/TagRef.h>
10#include <aws/appmesh/model/VirtualNodeSpec.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace AppMesh {
22namespace Model {
23
30 public:
31 AWS_APPMESH_API CreateVirtualNodeRequest() = default;
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 "CreateVirtualNode"; }
38
39 AWS_APPMESH_API Aws::String SerializePayload() const override;
40
41 AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
49 inline const Aws::String& GetClientToken() const { return m_clientToken; }
50 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
51 template <typename ClientTokenT = Aws::String>
52 void SetClientToken(ClientTokenT&& value) {
53 m_clientTokenHasBeenSet = true;
54 m_clientToken = std::forward<ClientTokenT>(value);
55 }
56 template <typename ClientTokenT = Aws::String>
58 SetClientToken(std::forward<ClientTokenT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetMeshName() const { return m_meshName; }
68 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
69 template <typename MeshNameT = Aws::String>
70 void SetMeshName(MeshNameT&& value) {
71 m_meshNameHasBeenSet = true;
72 m_meshName = std::forward<MeshNameT>(value);
73 }
74 template <typename MeshNameT = Aws::String>
76 SetMeshName(std::forward<MeshNameT>(value));
77 return *this;
78 }
80
82
90 inline const Aws::String& GetMeshOwner() const { return m_meshOwner; }
91 inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
92 template <typename MeshOwnerT = Aws::String>
93 void SetMeshOwner(MeshOwnerT&& value) {
94 m_meshOwnerHasBeenSet = true;
95 m_meshOwner = std::forward<MeshOwnerT>(value);
96 }
97 template <typename MeshOwnerT = Aws::String>
99 SetMeshOwner(std::forward<MeshOwnerT>(value));
100 return *this;
101 }
103
105
108 inline const VirtualNodeSpec& GetSpec() const { return m_spec; }
109 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
110 template <typename SpecT = VirtualNodeSpec>
111 void SetSpec(SpecT&& value) {
112 m_specHasBeenSet = true;
113 m_spec = std::forward<SpecT>(value);
114 }
115 template <typename SpecT = VirtualNodeSpec>
117 SetSpec(std::forward<SpecT>(value));
118 return *this;
119 }
121
123
129 inline const Aws::Vector<TagRef>& GetTags() const { return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 template <typename TagsT = Aws::Vector<TagRef>>
132 void SetTags(TagsT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags = std::forward<TagsT>(value);
135 }
136 template <typename TagsT = Aws::Vector<TagRef>>
138 SetTags(std::forward<TagsT>(value));
139 return *this;
140 }
141 template <typename TagsT = TagRef>
143 m_tagsHasBeenSet = true;
144 m_tags.emplace_back(std::forward<TagsT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetVirtualNodeName() const { return m_virtualNodeName; }
154 inline bool VirtualNodeNameHasBeenSet() const { return m_virtualNodeNameHasBeenSet; }
155 template <typename VirtualNodeNameT = Aws::String>
156 void SetVirtualNodeName(VirtualNodeNameT&& value) {
157 m_virtualNodeNameHasBeenSet = true;
158 m_virtualNodeName = std::forward<VirtualNodeNameT>(value);
159 }
160 template <typename VirtualNodeNameT = Aws::String>
162 SetVirtualNodeName(std::forward<VirtualNodeNameT>(value));
163 return *this;
164 }
166 private:
168
169 Aws::String m_meshName;
170
171 Aws::String m_meshOwner;
172
173 VirtualNodeSpec m_spec;
174
175 Aws::Vector<TagRef> m_tags;
176
177 Aws::String m_virtualNodeName;
178 bool m_clientTokenHasBeenSet = true;
179 bool m_meshNameHasBeenSet = false;
180 bool m_meshOwnerHasBeenSet = false;
181 bool m_specHasBeenSet = false;
182 bool m_tagsHasBeenSet = false;
183 bool m_virtualNodeNameHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace AppMesh
188} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateVirtualNodeRequest & WithClientToken(ClientTokenT &&value)
AWS_APPMESH_API Aws::String SerializePayload() const override
AWS_APPMESH_API CreateVirtualNodeRequest()=default
CreateVirtualNodeRequest & WithSpec(SpecT &&value)
const Aws::Vector< TagRef > & GetTags() const
CreateVirtualNodeRequest & WithMeshName(MeshNameT &&value)
CreateVirtualNodeRequest & WithTags(TagsT &&value)
CreateVirtualNodeRequest & AddTags(TagsT &&value)
CreateVirtualNodeRequest & WithMeshOwner(MeshOwnerT &&value)
AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateVirtualNodeRequest & WithVirtualNodeName(VirtualNodeNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector