AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
CreateApplicationRequest.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/ApiGatewayProxyInput.h>
13#include <aws/migration-hub-refactor-spaces/model/ProxyType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace MigrationHubRefactorSpaces {
19namespace Model {
20
24 public:
25 AWS_MIGRATIONHUBREFACTORSPACES_API CreateApplicationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
32
33 AWS_MIGRATIONHUBREFACTORSPACES_API Aws::String SerializePayload() const override;
34
36
40 inline const ApiGatewayProxyInput& GetApiGatewayProxy() const { return m_apiGatewayProxy; }
41 inline bool ApiGatewayProxyHasBeenSet() const { return m_apiGatewayProxyHasBeenSet; }
42 template <typename ApiGatewayProxyT = ApiGatewayProxyInput>
43 void SetApiGatewayProxy(ApiGatewayProxyT&& value) {
44 m_apiGatewayProxyHasBeenSet = true;
45 m_apiGatewayProxy = std::forward<ApiGatewayProxyT>(value);
46 }
47 template <typename ApiGatewayProxyT = ApiGatewayProxyInput>
48 CreateApplicationRequest& WithApiGatewayProxy(ApiGatewayProxyT&& value) {
49 SetApiGatewayProxy(std::forward<ApiGatewayProxyT>(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>
68 SetClientToken(std::forward<ClientTokenT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetEnvironmentIdentifier() const { return m_environmentIdentifier; }
78 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
79 template <typename EnvironmentIdentifierT = Aws::String>
80 void SetEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
81 m_environmentIdentifierHasBeenSet = true;
82 m_environmentIdentifier = std::forward<EnvironmentIdentifierT>(value);
83 }
84 template <typename EnvironmentIdentifierT = Aws::String>
85 CreateApplicationRequest& WithEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
86 SetEnvironmentIdentifier(std::forward<EnvironmentIdentifierT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetName() const { return m_name; }
96 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
97 template <typename NameT = Aws::String>
98 void SetName(NameT&& value) {
99 m_nameHasBeenSet = true;
100 m_name = std::forward<NameT>(value);
101 }
102 template <typename NameT = Aws::String>
104 SetName(std::forward<NameT>(value));
105 return *this;
106 }
108
110
113 inline ProxyType GetProxyType() const { return m_proxyType; }
114 inline bool ProxyTypeHasBeenSet() const { return m_proxyTypeHasBeenSet; }
115 inline void SetProxyType(ProxyType value) {
116 m_proxyTypeHasBeenSet = true;
117 m_proxyType = value;
118 }
120 SetProxyType(value);
121 return *this;
122 }
124
126
130 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
133 void SetTags(TagsT&& value) {
134 m_tagsHasBeenSet = true;
135 m_tags = std::forward<TagsT>(value);
136 }
137 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
139 SetTags(std::forward<TagsT>(value));
140 return *this;
141 }
142 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
143 CreateApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
144 m_tagsHasBeenSet = true;
145 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetVpcId() const { return m_vpcId; }
155 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
156 template <typename VpcIdT = Aws::String>
157 void SetVpcId(VpcIdT&& value) {
158 m_vpcIdHasBeenSet = true;
159 m_vpcId = std::forward<VpcIdT>(value);
160 }
161 template <typename VpcIdT = Aws::String>
163 SetVpcId(std::forward<VpcIdT>(value));
164 return *this;
165 }
167 private:
168 ApiGatewayProxyInput m_apiGatewayProxy;
169
171
172 Aws::String m_environmentIdentifier;
173
174 Aws::String m_name;
175
176 ProxyType m_proxyType{ProxyType::NOT_SET};
177
179
180 Aws::String m_vpcId;
181 bool m_apiGatewayProxyHasBeenSet = false;
182 bool m_clientTokenHasBeenSet = true;
183 bool m_environmentIdentifierHasBeenSet = false;
184 bool m_nameHasBeenSet = false;
185 bool m_proxyTypeHasBeenSet = false;
186 bool m_tagsHasBeenSet = false;
187 bool m_vpcIdHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace MigrationHubRefactorSpaces
192} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateApplicationRequest & WithEnvironmentIdentifier(EnvironmentIdentifierT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API CreateApplicationRequest()=default
CreateApplicationRequest & WithApiGatewayProxy(ApiGatewayProxyT &&value)
CreateApplicationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateApplicationRequest & WithClientToken(ClientTokenT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API Aws::String SerializePayload() const override
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