AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
CreateServiceRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/migration-hub-refactor-spaces/MigrationHubRefactorSpacesRequest.h>
11#include <aws/migration-hub-refactor-spaces/MigrationHubRefactorSpaces_EXPORTS.h>
12#include <aws/migration-hub-refactor-spaces/model/LambdaEndpointInput.h>
13#include <aws/migration-hub-refactor-spaces/model/ServiceEndpointType.h>
14#include <aws/migration-hub-refactor-spaces/model/UrlEndpointInput.h>
15
16#include <utility>
17
18namespace Aws {
19namespace MigrationHubRefactorSpaces {
20namespace Model {
21
25 public:
26 AWS_MIGRATIONHUBREFACTORSPACES_API CreateServiceRequest() = 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 "CreateService"; }
33
34 AWS_MIGRATIONHUBREFACTORSPACES_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetApplicationIdentifier() const { return m_applicationIdentifier; }
41 inline bool ApplicationIdentifierHasBeenSet() const { return m_applicationIdentifierHasBeenSet; }
42 template <typename ApplicationIdentifierT = Aws::String>
43 void SetApplicationIdentifier(ApplicationIdentifierT&& value) {
44 m_applicationIdentifierHasBeenSet = true;
45 m_applicationIdentifier = std::forward<ApplicationIdentifierT>(value);
46 }
47 template <typename ApplicationIdentifierT = Aws::String>
48 CreateServiceRequest& WithApplicationIdentifier(ApplicationIdentifierT&& value) {
49 SetApplicationIdentifier(std::forward<ApplicationIdentifierT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetClientToken() const { return m_clientToken; }
60 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
61 template <typename ClientTokenT = Aws::String>
62 void SetClientToken(ClientTokenT&& value) {
63 m_clientTokenHasBeenSet = true;
64 m_clientToken = std::forward<ClientTokenT>(value);
65 }
66 template <typename ClientTokenT = Aws::String>
67 CreateServiceRequest& WithClientToken(ClientTokenT&& value) {
68 SetClientToken(std::forward<ClientTokenT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 CreateServiceRequest& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
96 inline ServiceEndpointType GetEndpointType() const { return m_endpointType; }
97 inline bool EndpointTypeHasBeenSet() const { return m_endpointTypeHasBeenSet; }
99 m_endpointTypeHasBeenSet = true;
100 m_endpointType = value;
101 }
103 SetEndpointType(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetEnvironmentIdentifier() const { return m_environmentIdentifier; }
113 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
114 template <typename EnvironmentIdentifierT = Aws::String>
115 void SetEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
116 m_environmentIdentifierHasBeenSet = true;
117 m_environmentIdentifier = std::forward<EnvironmentIdentifierT>(value);
118 }
119 template <typename EnvironmentIdentifierT = Aws::String>
120 CreateServiceRequest& WithEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
121 SetEnvironmentIdentifier(std::forward<EnvironmentIdentifierT>(value));
122 return *this;
123 }
125
127
130 inline const LambdaEndpointInput& GetLambdaEndpoint() const { return m_lambdaEndpoint; }
131 inline bool LambdaEndpointHasBeenSet() const { return m_lambdaEndpointHasBeenSet; }
132 template <typename LambdaEndpointT = LambdaEndpointInput>
133 void SetLambdaEndpoint(LambdaEndpointT&& value) {
134 m_lambdaEndpointHasBeenSet = true;
135 m_lambdaEndpoint = std::forward<LambdaEndpointT>(value);
136 }
137 template <typename LambdaEndpointT = LambdaEndpointInput>
138 CreateServiceRequest& WithLambdaEndpoint(LambdaEndpointT&& value) {
139 SetLambdaEndpoint(std::forward<LambdaEndpointT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetName() const { return m_name; }
149 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
150 template <typename NameT = Aws::String>
151 void SetName(NameT&& value) {
152 m_nameHasBeenSet = true;
153 m_name = std::forward<NameT>(value);
154 }
155 template <typename NameT = Aws::String>
157 SetName(std::forward<NameT>(value));
158 return *this;
159 }
161
163
167 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
168 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
169 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
170 void SetTags(TagsT&& value) {
171 m_tagsHasBeenSet = true;
172 m_tags = std::forward<TagsT>(value);
173 }
174 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
176 SetTags(std::forward<TagsT>(value));
177 return *this;
178 }
179 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
180 CreateServiceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
181 m_tagsHasBeenSet = true;
182 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
183 return *this;
184 }
186
188
195 inline const UrlEndpointInput& GetUrlEndpoint() const { return m_urlEndpoint; }
196 inline bool UrlEndpointHasBeenSet() const { return m_urlEndpointHasBeenSet; }
197 template <typename UrlEndpointT = UrlEndpointInput>
198 void SetUrlEndpoint(UrlEndpointT&& value) {
199 m_urlEndpointHasBeenSet = true;
200 m_urlEndpoint = std::forward<UrlEndpointT>(value);
201 }
202 template <typename UrlEndpointT = UrlEndpointInput>
203 CreateServiceRequest& WithUrlEndpoint(UrlEndpointT&& value) {
204 SetUrlEndpoint(std::forward<UrlEndpointT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::String& GetVpcId() const { return m_vpcId; }
214 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
215 template <typename VpcIdT = Aws::String>
216 void SetVpcId(VpcIdT&& value) {
217 m_vpcIdHasBeenSet = true;
218 m_vpcId = std::forward<VpcIdT>(value);
219 }
220 template <typename VpcIdT = Aws::String>
222 SetVpcId(std::forward<VpcIdT>(value));
223 return *this;
224 }
226 private:
227 Aws::String m_applicationIdentifier;
228
230
231 Aws::String m_description;
232
234
235 Aws::String m_environmentIdentifier;
236
237 LambdaEndpointInput m_lambdaEndpoint;
238
239 Aws::String m_name;
240
242
243 UrlEndpointInput m_urlEndpoint;
244
245 Aws::String m_vpcId;
246 bool m_applicationIdentifierHasBeenSet = false;
247 bool m_clientTokenHasBeenSet = true;
248 bool m_descriptionHasBeenSet = false;
249 bool m_endpointTypeHasBeenSet = false;
250 bool m_environmentIdentifierHasBeenSet = false;
251 bool m_lambdaEndpointHasBeenSet = false;
252 bool m_nameHasBeenSet = false;
253 bool m_tagsHasBeenSet = false;
254 bool m_urlEndpointHasBeenSet = false;
255 bool m_vpcIdHasBeenSet = false;
256};
257
258} // namespace Model
259} // namespace MigrationHubRefactorSpaces
260} // namespace Aws
CreateServiceRequest & WithDescription(DescriptionT &&value)
CreateServiceRequest & WithEndpointType(ServiceEndpointType value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateServiceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API CreateServiceRequest()=default
AWS_MIGRATIONHUBREFACTORSPACES_API Aws::String SerializePayload() const override
CreateServiceRequest & WithClientToken(ClientTokenT &&value)
CreateServiceRequest & WithEnvironmentIdentifier(EnvironmentIdentifierT &&value)
CreateServiceRequest & WithApplicationIdentifier(ApplicationIdentifierT &&value)
CreateServiceRequest & WithUrlEndpoint(UrlEndpointT &&value)
CreateServiceRequest & WithLambdaEndpoint(LambdaEndpointT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String