AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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/PartnerAppAuthType.h>
13#include <aws/sagemaker/model/PartnerAppConfig.h>
14#include <aws/sagemaker/model/PartnerAppMaintenanceConfig.h>
15#include <aws/sagemaker/model/PartnerAppType.h>
16#include <aws/sagemaker/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace SageMaker {
22namespace Model {
23
27 public:
28 AWS_SAGEMAKER_API CreatePartnerAppRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreatePartnerApp"; }
35
36 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
37
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
64 inline PartnerAppType GetType() const { return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 inline void SetType(PartnerAppType value) {
67 m_typeHasBeenSet = true;
68 m_type = value;
69 }
71 SetType(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
81 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
82 template <typename ExecutionRoleArnT = Aws::String>
83 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
84 m_executionRoleArnHasBeenSet = true;
85 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
86 }
87 template <typename ExecutionRoleArnT = Aws::String>
88 CreatePartnerAppRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
89 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
101 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
102 template <typename KmsKeyIdT = Aws::String>
103 void SetKmsKeyId(KmsKeyIdT&& value) {
104 m_kmsKeyIdHasBeenSet = true;
105 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
106 }
107 template <typename KmsKeyIdT = Aws::String>
109 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
110 return *this;
111 }
113
115
118 inline const PartnerAppMaintenanceConfig& GetMaintenanceConfig() const { return m_maintenanceConfig; }
119 inline bool MaintenanceConfigHasBeenSet() const { return m_maintenanceConfigHasBeenSet; }
120 template <typename MaintenanceConfigT = PartnerAppMaintenanceConfig>
121 void SetMaintenanceConfig(MaintenanceConfigT&& value) {
122 m_maintenanceConfigHasBeenSet = true;
123 m_maintenanceConfig = std::forward<MaintenanceConfigT>(value);
124 }
125 template <typename MaintenanceConfigT = PartnerAppMaintenanceConfig>
126 CreatePartnerAppRequest& WithMaintenanceConfig(MaintenanceConfigT&& value) {
127 SetMaintenanceConfig(std::forward<MaintenanceConfigT>(value));
128 return *this;
129 }
131
133
137 inline const Aws::String& GetTier() const { return m_tier; }
138 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
139 template <typename TierT = Aws::String>
140 void SetTier(TierT&& value) {
141 m_tierHasBeenSet = true;
142 m_tier = std::forward<TierT>(value);
143 }
144 template <typename TierT = Aws::String>
146 SetTier(std::forward<TierT>(value));
147 return *this;
148 }
150
152
155 inline const PartnerAppConfig& GetApplicationConfig() const { return m_applicationConfig; }
156 inline bool ApplicationConfigHasBeenSet() const { return m_applicationConfigHasBeenSet; }
157 template <typename ApplicationConfigT = PartnerAppConfig>
158 void SetApplicationConfig(ApplicationConfigT&& value) {
159 m_applicationConfigHasBeenSet = true;
160 m_applicationConfig = std::forward<ApplicationConfigT>(value);
161 }
162 template <typename ApplicationConfigT = PartnerAppConfig>
163 CreatePartnerAppRequest& WithApplicationConfig(ApplicationConfigT&& value) {
164 SetApplicationConfig(std::forward<ApplicationConfigT>(value));
165 return *this;
166 }
168
170
174 inline PartnerAppAuthType GetAuthType() const { return m_authType; }
175 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
176 inline void SetAuthType(PartnerAppAuthType value) {
177 m_authTypeHasBeenSet = true;
178 m_authType = value;
179 }
181 SetAuthType(value);
182 return *this;
183 }
185
187
192 inline bool GetEnableIamSessionBasedIdentity() const { return m_enableIamSessionBasedIdentity; }
193 inline bool EnableIamSessionBasedIdentityHasBeenSet() const { return m_enableIamSessionBasedIdentityHasBeenSet; }
194 inline void SetEnableIamSessionBasedIdentity(bool value) {
195 m_enableIamSessionBasedIdentityHasBeenSet = true;
196 m_enableIamSessionBasedIdentity = value;
197 }
200 return *this;
201 }
203
205
210 inline bool GetEnableAutoMinorVersionUpgrade() const { return m_enableAutoMinorVersionUpgrade; }
211 inline bool EnableAutoMinorVersionUpgradeHasBeenSet() const { return m_enableAutoMinorVersionUpgradeHasBeenSet; }
212 inline void SetEnableAutoMinorVersionUpgrade(bool value) {
213 m_enableAutoMinorVersionUpgradeHasBeenSet = true;
214 m_enableAutoMinorVersionUpgrade = value;
215 }
218 return *this;
219 }
221
223
226 inline const Aws::String& GetClientToken() const { return m_clientToken; }
227 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
228 template <typename ClientTokenT = Aws::String>
229 void SetClientToken(ClientTokenT&& value) {
230 m_clientTokenHasBeenSet = true;
231 m_clientToken = std::forward<ClientTokenT>(value);
232 }
233 template <typename ClientTokenT = Aws::String>
235 SetClientToken(std::forward<ClientTokenT>(value));
236 return *this;
237 }
239
241
245 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
246 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
247 template <typename TagsT = Aws::Vector<Tag>>
248 void SetTags(TagsT&& value) {
249 m_tagsHasBeenSet = true;
250 m_tags = std::forward<TagsT>(value);
251 }
252 template <typename TagsT = Aws::Vector<Tag>>
254 SetTags(std::forward<TagsT>(value));
255 return *this;
256 }
257 template <typename TagsT = Tag>
259 m_tagsHasBeenSet = true;
260 m_tags.emplace_back(std::forward<TagsT>(value));
261 return *this;
262 }
264 private:
265 Aws::String m_name;
266
268
269 Aws::String m_executionRoleArn;
270
271 Aws::String m_kmsKeyId;
272
273 PartnerAppMaintenanceConfig m_maintenanceConfig;
274
275 Aws::String m_tier;
276
277 PartnerAppConfig m_applicationConfig;
278
280
281 bool m_enableIamSessionBasedIdentity{false};
282
283 bool m_enableAutoMinorVersionUpgrade{false};
284
286
287 Aws::Vector<Tag> m_tags;
288 bool m_nameHasBeenSet = false;
289 bool m_typeHasBeenSet = false;
290 bool m_executionRoleArnHasBeenSet = false;
291 bool m_kmsKeyIdHasBeenSet = false;
292 bool m_maintenanceConfigHasBeenSet = false;
293 bool m_tierHasBeenSet = false;
294 bool m_applicationConfigHasBeenSet = false;
295 bool m_authTypeHasBeenSet = false;
296 bool m_enableIamSessionBasedIdentityHasBeenSet = false;
297 bool m_enableAutoMinorVersionUpgradeHasBeenSet = false;
298 bool m_clientTokenHasBeenSet = true;
299 bool m_tagsHasBeenSet = false;
300};
301
302} // namespace Model
303} // namespace SageMaker
304} // namespace Aws
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