AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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/PartnerAppConfig.h>
13#include <aws/sagemaker/model/PartnerAppMaintenanceConfig.h>
14#include <aws/sagemaker/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SageMaker {
20namespace Model {
21
25 public:
26 AWS_SAGEMAKER_API UpdatePartnerAppRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdatePartnerApp"; }
33
34 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
35
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const PartnerAppMaintenanceConfig& GetMaintenanceConfig() const { return m_maintenanceConfig; }
61 inline bool MaintenanceConfigHasBeenSet() const { return m_maintenanceConfigHasBeenSet; }
62 template <typename MaintenanceConfigT = PartnerAppMaintenanceConfig>
63 void SetMaintenanceConfig(MaintenanceConfigT&& value) {
64 m_maintenanceConfigHasBeenSet = true;
65 m_maintenanceConfig = std::forward<MaintenanceConfigT>(value);
66 }
67 template <typename MaintenanceConfigT = PartnerAppMaintenanceConfig>
68 UpdatePartnerAppRequest& WithMaintenanceConfig(MaintenanceConfigT&& value) {
69 SetMaintenanceConfig(std::forward<MaintenanceConfigT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetTier() const { return m_tier; }
80 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
81 template <typename TierT = Aws::String>
82 void SetTier(TierT&& value) {
83 m_tierHasBeenSet = true;
84 m_tier = std::forward<TierT>(value);
85 }
86 template <typename TierT = Aws::String>
88 SetTier(std::forward<TierT>(value));
89 return *this;
90 }
92
94
97 inline const PartnerAppConfig& GetApplicationConfig() const { return m_applicationConfig; }
98 inline bool ApplicationConfigHasBeenSet() const { return m_applicationConfigHasBeenSet; }
99 template <typename ApplicationConfigT = PartnerAppConfig>
100 void SetApplicationConfig(ApplicationConfigT&& value) {
101 m_applicationConfigHasBeenSet = true;
102 m_applicationConfig = std::forward<ApplicationConfigT>(value);
103 }
104 template <typename ApplicationConfigT = PartnerAppConfig>
105 UpdatePartnerAppRequest& WithApplicationConfig(ApplicationConfigT&& value) {
106 SetApplicationConfig(std::forward<ApplicationConfigT>(value));
107 return *this;
108 }
110
112
117 inline bool GetEnableIamSessionBasedIdentity() const { return m_enableIamSessionBasedIdentity; }
118 inline bool EnableIamSessionBasedIdentityHasBeenSet() const { return m_enableIamSessionBasedIdentityHasBeenSet; }
119 inline void SetEnableIamSessionBasedIdentity(bool value) {
120 m_enableIamSessionBasedIdentityHasBeenSet = true;
121 m_enableIamSessionBasedIdentity = value;
122 }
125 return *this;
126 }
128
130
135 inline bool GetEnableAutoMinorVersionUpgrade() const { return m_enableAutoMinorVersionUpgrade; }
136 inline bool EnableAutoMinorVersionUpgradeHasBeenSet() const { return m_enableAutoMinorVersionUpgradeHasBeenSet; }
137 inline void SetEnableAutoMinorVersionUpgrade(bool value) {
138 m_enableAutoMinorVersionUpgradeHasBeenSet = true;
139 m_enableAutoMinorVersionUpgrade = value;
140 }
143 return *this;
144 }
146
148
154 inline const Aws::String& GetAppVersion() const { return m_appVersion; }
155 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
156 template <typename AppVersionT = Aws::String>
157 void SetAppVersion(AppVersionT&& value) {
158 m_appVersionHasBeenSet = true;
159 m_appVersion = std::forward<AppVersionT>(value);
160 }
161 template <typename AppVersionT = Aws::String>
163 SetAppVersion(std::forward<AppVersionT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetClientToken() const { return m_clientToken; }
173 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
174 template <typename ClientTokenT = Aws::String>
175 void SetClientToken(ClientTokenT&& value) {
176 m_clientTokenHasBeenSet = true;
177 m_clientToken = std::forward<ClientTokenT>(value);
178 }
179 template <typename ClientTokenT = Aws::String>
181 SetClientToken(std::forward<ClientTokenT>(value));
182 return *this;
183 }
185
187
191 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
192 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
193 template <typename TagsT = Aws::Vector<Tag>>
194 void SetTags(TagsT&& value) {
195 m_tagsHasBeenSet = true;
196 m_tags = std::forward<TagsT>(value);
197 }
198 template <typename TagsT = Aws::Vector<Tag>>
200 SetTags(std::forward<TagsT>(value));
201 return *this;
202 }
203 template <typename TagsT = Tag>
205 m_tagsHasBeenSet = true;
206 m_tags.emplace_back(std::forward<TagsT>(value));
207 return *this;
208 }
210 private:
211 Aws::String m_arn;
212
213 PartnerAppMaintenanceConfig m_maintenanceConfig;
214
215 Aws::String m_tier;
216
217 PartnerAppConfig m_applicationConfig;
218
219 bool m_enableIamSessionBasedIdentity{false};
220
221 bool m_enableAutoMinorVersionUpgrade{false};
222
223 Aws::String m_appVersion;
224
226
227 Aws::Vector<Tag> m_tags;
228 bool m_arnHasBeenSet = false;
229 bool m_maintenanceConfigHasBeenSet = false;
230 bool m_tierHasBeenSet = false;
231 bool m_applicationConfigHasBeenSet = false;
232 bool m_enableIamSessionBasedIdentityHasBeenSet = false;
233 bool m_enableAutoMinorVersionUpgradeHasBeenSet = false;
234 bool m_appVersionHasBeenSet = false;
235 bool m_clientTokenHasBeenSet = true;
236 bool m_tagsHasBeenSet = false;
237};
238
239} // namespace Model
240} // namespace SageMaker
241} // namespace Aws
UpdatePartnerAppRequest & WithTier(TierT &&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)
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