AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateVirtualNodeRequest.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/AppMeshRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appmesh/model/VirtualNodeSpec.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/appmesh/model/TagRef.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace AppMesh
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APPMESH_API CreateVirtualNodeRequest();
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateVirtualNode"; }
42
43 AWS_APPMESH_API Aws::String SerializePayload() const override;
44
45 AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
46
47
49
54 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
55 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
56 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
57 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
58 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
59 inline CreateVirtualNodeRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
60 inline CreateVirtualNodeRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
61 inline CreateVirtualNodeRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
63
65
68 inline const Aws::String& GetMeshName() const{ return m_meshName; }
69 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
70 inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; }
71 inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); }
72 inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); }
73 inline CreateVirtualNodeRequest& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
74 inline CreateVirtualNodeRequest& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
75 inline CreateVirtualNodeRequest& WithMeshName(const char* value) { SetMeshName(value); return *this;}
77
79
87 inline const Aws::String& GetMeshOwner() const{ return m_meshOwner; }
88 inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
89 inline void SetMeshOwner(const Aws::String& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = value; }
90 inline void SetMeshOwner(Aws::String&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::move(value); }
91 inline void SetMeshOwner(const char* value) { m_meshOwnerHasBeenSet = true; m_meshOwner.assign(value); }
92 inline CreateVirtualNodeRequest& WithMeshOwner(const Aws::String& value) { SetMeshOwner(value); return *this;}
93 inline CreateVirtualNodeRequest& WithMeshOwner(Aws::String&& value) { SetMeshOwner(std::move(value)); return *this;}
94 inline CreateVirtualNodeRequest& WithMeshOwner(const char* value) { SetMeshOwner(value); return *this;}
96
98
101 inline const VirtualNodeSpec& GetSpec() const{ return m_spec; }
102 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
103 inline void SetSpec(const VirtualNodeSpec& value) { m_specHasBeenSet = true; m_spec = value; }
104 inline void SetSpec(VirtualNodeSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
105 inline CreateVirtualNodeRequest& WithSpec(const VirtualNodeSpec& value) { SetSpec(value); return *this;}
106 inline CreateVirtualNodeRequest& WithSpec(VirtualNodeSpec&& value) { SetSpec(std::move(value)); return *this;}
108
110
116 inline const Aws::Vector<TagRef>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Vector<TagRef>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Vector<TagRef>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
120 inline CreateVirtualNodeRequest& WithTags(const Aws::Vector<TagRef>& value) { SetTags(value); return *this;}
121 inline CreateVirtualNodeRequest& WithTags(Aws::Vector<TagRef>&& value) { SetTags(std::move(value)); return *this;}
122 inline CreateVirtualNodeRequest& AddTags(const TagRef& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
123 inline CreateVirtualNodeRequest& AddTags(TagRef&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
125
127
130 inline const Aws::String& GetVirtualNodeName() const{ return m_virtualNodeName; }
131 inline bool VirtualNodeNameHasBeenSet() const { return m_virtualNodeNameHasBeenSet; }
132 inline void SetVirtualNodeName(const Aws::String& value) { m_virtualNodeNameHasBeenSet = true; m_virtualNodeName = value; }
133 inline void SetVirtualNodeName(Aws::String&& value) { m_virtualNodeNameHasBeenSet = true; m_virtualNodeName = std::move(value); }
134 inline void SetVirtualNodeName(const char* value) { m_virtualNodeNameHasBeenSet = true; m_virtualNodeName.assign(value); }
135 inline CreateVirtualNodeRequest& WithVirtualNodeName(const Aws::String& value) { SetVirtualNodeName(value); return *this;}
136 inline CreateVirtualNodeRequest& WithVirtualNodeName(Aws::String&& value) { SetVirtualNodeName(std::move(value)); return *this;}
137 inline CreateVirtualNodeRequest& WithVirtualNodeName(const char* value) { SetVirtualNodeName(value); return *this;}
139 private:
140
141 Aws::String m_clientToken;
142 bool m_clientTokenHasBeenSet = false;
143
144 Aws::String m_meshName;
145 bool m_meshNameHasBeenSet = false;
146
147 Aws::String m_meshOwner;
148 bool m_meshOwnerHasBeenSet = false;
149
150 VirtualNodeSpec m_spec;
151 bool m_specHasBeenSet = false;
152
153 Aws::Vector<TagRef> m_tags;
154 bool m_tagsHasBeenSet = false;
155
156 Aws::String m_virtualNodeName;
157 bool m_virtualNodeNameHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace AppMesh
162} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateVirtualNodeRequest & WithMeshOwner(const char *value)
CreateVirtualNodeRequest & WithTags(Aws::Vector< TagRef > &&value)
CreateVirtualNodeRequest & WithVirtualNodeName(const Aws::String &value)
CreateVirtualNodeRequest & AddTags(TagRef &&value)
AWS_APPMESH_API Aws::String SerializePayload() const override
CreateVirtualNodeRequest & WithMeshName(Aws::String &&value)
CreateVirtualNodeRequest & WithMeshOwner(const Aws::String &value)
CreateVirtualNodeRequest & AddTags(const TagRef &value)
CreateVirtualNodeRequest & WithClientToken(Aws::String &&value)
const Aws::Vector< TagRef > & GetTags() const
CreateVirtualNodeRequest & WithVirtualNodeName(Aws::String &&value)
CreateVirtualNodeRequest & WithVirtualNodeName(const char *value)
CreateVirtualNodeRequest & WithMeshName(const Aws::String &value)
void SetTags(const Aws::Vector< TagRef > &value)
CreateVirtualNodeRequest & WithClientToken(const char *value)
CreateVirtualNodeRequest & WithMeshName(const char *value)
CreateVirtualNodeRequest & WithSpec(VirtualNodeSpec &&value)
CreateVirtualNodeRequest & WithMeshOwner(Aws::String &&value)
CreateVirtualNodeRequest & WithSpec(const VirtualNodeSpec &value)
CreateVirtualNodeRequest & WithClientToken(const Aws::String &value)
CreateVirtualNodeRequest & WithTags(const Aws::Vector< TagRef > &value)
AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector