AWS SDK for C++

AWS SDK for C++ Version 1.11.874

Loading...
Searching...
No Matches
CreatePartnerAppRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMakerRequest.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/IdcConfigInput.h>
13#include <aws/sagemaker/model/PartnerAppAuthType.h>
14#include <aws/sagemaker/model/PartnerAppConfig.h>
15#include <aws/sagemaker/model/PartnerAppMaintenanceConfig.h>
16#include <aws/sagemaker/model/PartnerAppType.h>
17#include <aws/sagemaker/model/Tag.h>
18
19#include <utility>
20
21namespace Aws {
22namespace SageMaker {
23namespace Model {
24
28 public:
29 AWS_SAGEMAKER_API CreatePartnerAppRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreatePartnerApp"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
65 inline PartnerAppType GetType() const { return m_type; }
66 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
67 inline void SetType(PartnerAppType value) {
68 m_typeHasBeenSet = true;
69 m_type = value;
70 }
72 SetType(value);
73 return *this;
74 }
76
78
81 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
82 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
83 template <typename ExecutionRoleArnT = Aws::String>
84 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
85 m_executionRoleArnHasBeenSet = true;
86 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
87 }
88 template <typename ExecutionRoleArnT = Aws::String>
89 CreatePartnerAppRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
90 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
102 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
103 template <typename KmsKeyIdT = Aws::String>
104 void SetKmsKeyId(KmsKeyIdT&& value) {
105 m_kmsKeyIdHasBeenSet = true;
106 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
107 }
108 template <typename KmsKeyIdT = Aws::String>
110 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
111 return *this;
112 }
114
116
119 inline const PartnerAppMaintenanceConfig& GetMaintenanceConfig() const { return m_maintenanceConfig; }
120 inline bool MaintenanceConfigHasBeenSet() const { return m_maintenanceConfigHasBeenSet; }
121 template <typename MaintenanceConfigT = PartnerAppMaintenanceConfig>
122 void SetMaintenanceConfig(MaintenanceConfigT&& value) {
123 m_maintenanceConfigHasBeenSet = true;
124 m_maintenanceConfig = std::forward<MaintenanceConfigT>(value);
125 }
126 template <typename MaintenanceConfigT = PartnerAppMaintenanceConfig>
127 CreatePartnerAppRequest& WithMaintenanceConfig(MaintenanceConfigT&& value) {
128 SetMaintenanceConfig(std::forward<MaintenanceConfigT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetTier() const { return m_tier; }
139 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
140 template <typename TierT = Aws::String>
141 void SetTier(TierT&& value) {
142 m_tierHasBeenSet = true;
143 m_tier = std::forward<TierT>(value);
144 }
145 template <typename TierT = Aws::String>
147 SetTier(std::forward<TierT>(value));
148 return *this;
149 }
151
153
156 inline const PartnerAppConfig& GetApplicationConfig() const { return m_applicationConfig; }
157 inline bool ApplicationConfigHasBeenSet() const { return m_applicationConfigHasBeenSet; }
158 template <typename ApplicationConfigT = PartnerAppConfig>
159 void SetApplicationConfig(ApplicationConfigT&& value) {
160 m_applicationConfigHasBeenSet = true;
161 m_applicationConfig = std::forward<ApplicationConfigT>(value);
162 }
163 template <typename ApplicationConfigT = PartnerAppConfig>
164 CreatePartnerAppRequest& WithApplicationConfig(ApplicationConfigT&& value) {
165 SetApplicationConfig(std::forward<ApplicationConfigT>(value));
166 return *this;
167 }
169
171
177 inline const IdcConfigInput& GetIdcConfig() const { return m_idcConfig; }
178 inline bool IdcConfigHasBeenSet() const { return m_idcConfigHasBeenSet; }
179 template <typename IdcConfigT = IdcConfigInput>
180 void SetIdcConfig(IdcConfigT&& value) {
181 m_idcConfigHasBeenSet = true;
182 m_idcConfig = std::forward<IdcConfigT>(value);
183 }
184 template <typename IdcConfigT = IdcConfigInput>
186 SetIdcConfig(std::forward<IdcConfigT>(value));
187 return *this;
188 }
190
192
200 inline PartnerAppAuthType GetAuthType() const { return m_authType; }
201 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
202 inline void SetAuthType(PartnerAppAuthType value) {
203 m_authTypeHasBeenSet = true;
204 m_authType = value;
205 }
207 SetAuthType(value);
208 return *this;
209 }
211
213
218 inline bool GetEnableIamSessionBasedIdentity() const { return m_enableIamSessionBasedIdentity; }
219 inline bool EnableIamSessionBasedIdentityHasBeenSet() const { return m_enableIamSessionBasedIdentityHasBeenSet; }
220 inline void SetEnableIamSessionBasedIdentity(bool value) {
221 m_enableIamSessionBasedIdentityHasBeenSet = true;
222 m_enableIamSessionBasedIdentity = value;
223 }
226 return *this;
227 }
229
231
236 inline bool GetEnableAutoMinorVersionUpgrade() const { return m_enableAutoMinorVersionUpgrade; }
237 inline bool EnableAutoMinorVersionUpgradeHasBeenSet() const { return m_enableAutoMinorVersionUpgradeHasBeenSet; }
238 inline void SetEnableAutoMinorVersionUpgrade(bool value) {
239 m_enableAutoMinorVersionUpgradeHasBeenSet = true;
240 m_enableAutoMinorVersionUpgrade = value;
241 }
244 return *this;
245 }
247
249
252 inline const Aws::String& GetClientToken() const { return m_clientToken; }
253 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
254 template <typename ClientTokenT = Aws::String>
255 void SetClientToken(ClientTokenT&& value) {
256 m_clientTokenHasBeenSet = true;
257 m_clientToken = std::forward<ClientTokenT>(value);
258 }
259 template <typename ClientTokenT = Aws::String>
261 SetClientToken(std::forward<ClientTokenT>(value));
262 return *this;
263 }
265
267
271 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
272 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
273 template <typename TagsT = Aws::Vector<Tag>>
274 void SetTags(TagsT&& value) {
275 m_tagsHasBeenSet = true;
276 m_tags = std::forward<TagsT>(value);
277 }
278 template <typename TagsT = Aws::Vector<Tag>>
280 SetTags(std::forward<TagsT>(value));
281 return *this;
282 }
283 template <typename TagsT = Tag>
285 m_tagsHasBeenSet = true;
286 m_tags.emplace_back(std::forward<TagsT>(value));
287 return *this;
288 }
290 private:
291 Aws::String m_name;
292
294
295 Aws::String m_executionRoleArn;
296
297 Aws::String m_kmsKeyId;
298
299 PartnerAppMaintenanceConfig m_maintenanceConfig;
300
301 Aws::String m_tier;
302
303 PartnerAppConfig m_applicationConfig;
304
305 IdcConfigInput m_idcConfig;
306
308
309 bool m_enableIamSessionBasedIdentity{false};
310
311 bool m_enableAutoMinorVersionUpgrade{false};
312
314
315 Aws::Vector<Tag> m_tags;
316 bool m_nameHasBeenSet = false;
317 bool m_typeHasBeenSet = false;
318 bool m_executionRoleArnHasBeenSet = false;
319 bool m_kmsKeyIdHasBeenSet = false;
320 bool m_maintenanceConfigHasBeenSet = false;
321 bool m_tierHasBeenSet = false;
322 bool m_applicationConfigHasBeenSet = false;
323 bool m_idcConfigHasBeenSet = false;
324 bool m_authTypeHasBeenSet = false;
325 bool m_enableIamSessionBasedIdentityHasBeenSet = false;
326 bool m_enableAutoMinorVersionUpgradeHasBeenSet = false;
327 bool m_clientTokenHasBeenSet = true;
328 bool m_tagsHasBeenSet = false;
329};
330
331} // namespace Model
332} // namespace SageMaker
333} // namespace Aws
CreatePartnerAppRequest & WithIdcConfig(IdcConfigT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreatePartnerAppRequest & WithAuthType(PartnerAppAuthType value)
virtual const char * GetServiceRequestName() const override
CreatePartnerAppRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
AWS_SAGEMAKER_API CreatePartnerAppRequest()=default
CreatePartnerAppRequest & WithTags(TagsT &&value)
const PartnerAppMaintenanceConfig & GetMaintenanceConfig() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePartnerAppRequest & AddTags(TagsT &&value)
CreatePartnerAppRequest & WithTier(TierT &&value)
CreatePartnerAppRequest & WithMaintenanceConfig(MaintenanceConfigT &&value)
CreatePartnerAppRequest & WithType(PartnerAppType value)
CreatePartnerAppRequest & WithName(NameT &&value)
CreatePartnerAppRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreatePartnerAppRequest & WithClientToken(ClientTokenT &&value)
CreatePartnerAppRequest & WithApplicationConfig(ApplicationConfigT &&value)
CreatePartnerAppRequest & WithEnableIamSessionBasedIdentity(bool value)
CreatePartnerAppRequest & WithEnableAutoMinorVersionUpgrade(bool value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector