AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/m2/MainframeModernizationRequest.h>
11#include <aws/m2/MainframeModernization_EXPORTS.h>
12#include <aws/m2/model/Definition.h>
13#include <aws/m2/model/EngineType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace MainframeModernization {
19namespace Model {
20
24 public:
25 AWS_MAINFRAMEMODERNIZATION_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_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override;
34
36
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>
51 SetClientToken(std::forward<ClientTokenT>(value));
52 return *this;
53 }
55
57
61 inline const Definition& GetDefinition() const { return m_definition; }
62 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
63 template <typename DefinitionT = Definition>
64 void SetDefinition(DefinitionT&& value) {
65 m_definitionHasBeenSet = true;
66 m_definition = std::forward<DefinitionT>(value);
67 }
68 template <typename DefinitionT = Definition>
70 SetDefinition(std::forward<DefinitionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
97 inline EngineType GetEngineType() const { return m_engineType; }
98 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
99 inline void SetEngineType(EngineType value) {
100 m_engineTypeHasBeenSet = true;
101 m_engineType = value;
102 }
104 SetEngineType(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
114 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
115 template <typename KmsKeyIdT = Aws::String>
116 void SetKmsKeyId(KmsKeyIdT&& value) {
117 m_kmsKeyIdHasBeenSet = true;
118 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
119 }
120 template <typename KmsKeyIdT = Aws::String>
122 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetName() const { return m_name; }
132 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
133 template <typename NameT = Aws::String>
134 void SetName(NameT&& value) {
135 m_nameHasBeenSet = true;
136 m_name = std::forward<NameT>(value);
137 }
138 template <typename NameT = Aws::String>
140 SetName(std::forward<NameT>(value));
141 return *this;
142 }
144
146
151 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
152 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
153 template <typename RoleArnT = Aws::String>
154 void SetRoleArn(RoleArnT&& value) {
155 m_roleArnHasBeenSet = true;
156 m_roleArn = std::forward<RoleArnT>(value);
157 }
158 template <typename RoleArnT = Aws::String>
160 SetRoleArn(std::forward<RoleArnT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
170 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
171 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
172 void SetTags(TagsT&& value) {
173 m_tagsHasBeenSet = true;
174 m_tags = std::forward<TagsT>(value);
175 }
176 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
178 SetTags(std::forward<TagsT>(value));
179 return *this;
180 }
181 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
182 CreateApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
183 m_tagsHasBeenSet = true;
184 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
185 return *this;
186 }
188 private:
190
191 Definition m_definition;
192
193 Aws::String m_description;
194
195 EngineType m_engineType{EngineType::NOT_SET};
196
197 Aws::String m_kmsKeyId;
198
199 Aws::String m_name;
200
201 Aws::String m_roleArn;
202
204 bool m_clientTokenHasBeenSet = true;
205 bool m_definitionHasBeenSet = false;
206 bool m_descriptionHasBeenSet = false;
207 bool m_engineTypeHasBeenSet = false;
208 bool m_kmsKeyIdHasBeenSet = false;
209 bool m_nameHasBeenSet = false;
210 bool m_roleArnHasBeenSet = false;
211 bool m_tagsHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace MainframeModernization
216} // namespace Aws
CreateApplicationRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MAINFRAMEMODERNIZATION_API CreateApplicationRequest()=default
CreateApplicationRequest & WithClientToken(ClientTokenT &&value)
AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override
CreateApplicationRequest & WithDefinition(DefinitionT &&value)
CreateApplicationRequest & AddTags(TagsKeyT &&key, TagsValueT &&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