AWS SDK for C++

AWS SDK for C++ Version 1.11.874

Loading...
Searching...
No Matches
UpdatePartnerAppRequest.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/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace SageMaker {
22namespace Model {
23
27 public:
28 AWS_SAGEMAKER_API UpdatePartnerAppRequest() = 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 "UpdatePartnerApp"; }
35
36 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
37
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
62 inline const PartnerAppMaintenanceConfig& GetMaintenanceConfig() const { return m_maintenanceConfig; }
63 inline bool MaintenanceConfigHasBeenSet() const { return m_maintenanceConfigHasBeenSet; }
64 template <typename MaintenanceConfigT = PartnerAppMaintenanceConfig>
65 void SetMaintenanceConfig(MaintenanceConfigT&& value) {
66 m_maintenanceConfigHasBeenSet = true;
67 m_maintenanceConfig = std::forward<MaintenanceConfigT>(value);
68 }
69 template <typename MaintenanceConfigT = PartnerAppMaintenanceConfig>
70 UpdatePartnerAppRequest& WithMaintenanceConfig(MaintenanceConfigT&& value) {
71 SetMaintenanceConfig(std::forward<MaintenanceConfigT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetTier() const { return m_tier; }
82 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
83 template <typename TierT = Aws::String>
84 void SetTier(TierT&& value) {
85 m_tierHasBeenSet = true;
86 m_tier = std::forward<TierT>(value);
87 }
88 template <typename TierT = Aws::String>
90 SetTier(std::forward<TierT>(value));
91 return *this;
92 }
94
96
99 inline const PartnerAppConfig& GetApplicationConfig() const { return m_applicationConfig; }
100 inline bool ApplicationConfigHasBeenSet() const { return m_applicationConfigHasBeenSet; }
101 template <typename ApplicationConfigT = PartnerAppConfig>
102 void SetApplicationConfig(ApplicationConfigT&& value) {
103 m_applicationConfigHasBeenSet = true;
104 m_applicationConfig = std::forward<ApplicationConfigT>(value);
105 }
106 template <typename ApplicationConfigT = PartnerAppConfig>
107 UpdatePartnerAppRequest& WithApplicationConfig(ApplicationConfigT&& value) {
108 SetApplicationConfig(std::forward<ApplicationConfigT>(value));
109 return *this;
110 }
112
114
120 inline const IdcConfigInput& GetIdcConfig() const { return m_idcConfig; }
121 inline bool IdcConfigHasBeenSet() const { return m_idcConfigHasBeenSet; }
122 template <typename IdcConfigT = IdcConfigInput>
123 void SetIdcConfig(IdcConfigT&& value) {
124 m_idcConfigHasBeenSet = true;
125 m_idcConfig = std::forward<IdcConfigT>(value);
126 }
127 template <typename IdcConfigT = IdcConfigInput>
129 SetIdcConfig(std::forward<IdcConfigT>(value));
130 return *this;
131 }
133
135
145 inline PartnerAppAuthType GetAuthType() const { return m_authType; }
146 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
147 inline void SetAuthType(PartnerAppAuthType value) {
148 m_authTypeHasBeenSet = true;
149 m_authType = value;
150 }
152 SetAuthType(value);
153 return *this;
154 }
156
158
163 inline bool GetEnableIamSessionBasedIdentity() const { return m_enableIamSessionBasedIdentity; }
164 inline bool EnableIamSessionBasedIdentityHasBeenSet() const { return m_enableIamSessionBasedIdentityHasBeenSet; }
165 inline void SetEnableIamSessionBasedIdentity(bool value) {
166 m_enableIamSessionBasedIdentityHasBeenSet = true;
167 m_enableIamSessionBasedIdentity = value;
168 }
171 return *this;
172 }
174
176
181 inline bool GetEnableAutoMinorVersionUpgrade() const { return m_enableAutoMinorVersionUpgrade; }
182 inline bool EnableAutoMinorVersionUpgradeHasBeenSet() const { return m_enableAutoMinorVersionUpgradeHasBeenSet; }
183 inline void SetEnableAutoMinorVersionUpgrade(bool value) {
184 m_enableAutoMinorVersionUpgradeHasBeenSet = true;
185 m_enableAutoMinorVersionUpgrade = value;
186 }
189 return *this;
190 }
192
194
200 inline const Aws::String& GetAppVersion() const { return m_appVersion; }
201 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
202 template <typename AppVersionT = Aws::String>
203 void SetAppVersion(AppVersionT&& value) {
204 m_appVersionHasBeenSet = true;
205 m_appVersion = std::forward<AppVersionT>(value);
206 }
207 template <typename AppVersionT = Aws::String>
209 SetAppVersion(std::forward<AppVersionT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::String& GetClientToken() const { return m_clientToken; }
219 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
220 template <typename ClientTokenT = Aws::String>
221 void SetClientToken(ClientTokenT&& value) {
222 m_clientTokenHasBeenSet = true;
223 m_clientToken = std::forward<ClientTokenT>(value);
224 }
225 template <typename ClientTokenT = Aws::String>
227 SetClientToken(std::forward<ClientTokenT>(value));
228 return *this;
229 }
231
233
237 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
238 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
239 template <typename TagsT = Aws::Vector<Tag>>
240 void SetTags(TagsT&& value) {
241 m_tagsHasBeenSet = true;
242 m_tags = std::forward<TagsT>(value);
243 }
244 template <typename TagsT = Aws::Vector<Tag>>
246 SetTags(std::forward<TagsT>(value));
247 return *this;
248 }
249 template <typename TagsT = Tag>
251 m_tagsHasBeenSet = true;
252 m_tags.emplace_back(std::forward<TagsT>(value));
253 return *this;
254 }
256 private:
257 Aws::String m_arn;
258
259 PartnerAppMaintenanceConfig m_maintenanceConfig;
260
261 Aws::String m_tier;
262
263 PartnerAppConfig m_applicationConfig;
264
265 IdcConfigInput m_idcConfig;
266
268
269 bool m_enableIamSessionBasedIdentity{false};
270
271 bool m_enableAutoMinorVersionUpgrade{false};
272
273 Aws::String m_appVersion;
274
276
277 Aws::Vector<Tag> m_tags;
278 bool m_arnHasBeenSet = false;
279 bool m_maintenanceConfigHasBeenSet = false;
280 bool m_tierHasBeenSet = false;
281 bool m_applicationConfigHasBeenSet = false;
282 bool m_idcConfigHasBeenSet = false;
283 bool m_authTypeHasBeenSet = false;
284 bool m_enableIamSessionBasedIdentityHasBeenSet = false;
285 bool m_enableAutoMinorVersionUpgradeHasBeenSet = false;
286 bool m_appVersionHasBeenSet = false;
287 bool m_clientTokenHasBeenSet = true;
288 bool m_tagsHasBeenSet = false;
289};
290
291} // namespace Model
292} // namespace SageMaker
293} // namespace Aws
UpdatePartnerAppRequest & WithTier(TierT &&value)
UpdatePartnerAppRequest & WithAuthType(PartnerAppAuthType value)
const PartnerAppConfig & GetApplicationConfig() const
UpdatePartnerAppRequest & WithClientToken(ClientTokenT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetMaintenanceConfig(MaintenanceConfigT &&value)
AWS_SAGEMAKER_API UpdatePartnerAppRequest()=default
virtual const char * GetServiceRequestName() const override
UpdatePartnerAppRequest & WithMaintenanceConfig(MaintenanceConfigT &&value)
UpdatePartnerAppRequest & WithArn(ArnT &&value)
UpdatePartnerAppRequest & WithAppVersion(AppVersionT &&value)
const PartnerAppMaintenanceConfig & GetMaintenanceConfig() const
UpdatePartnerAppRequest & WithTags(TagsT &&value)
UpdatePartnerAppRequest & WithEnableAutoMinorVersionUpgrade(bool value)
UpdatePartnerAppRequest & AddTags(TagsT &&value)
UpdatePartnerAppRequest & WithApplicationConfig(ApplicationConfigT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdatePartnerAppRequest & WithEnableIamSessionBasedIdentity(bool value)
UpdatePartnerAppRequest & WithIdcConfig(IdcConfigT &&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