AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdatePartnerAppRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/PartnerAppMaintenanceConfig.h>
11#include <aws/sagemaker/model/PartnerAppConfig.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/sagemaker/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace SageMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SAGEMAKER_API UpdatePartnerAppRequest() = 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 "UpdatePartnerApp"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template<typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
50 template<typename ArnT = Aws::String>
51 UpdatePartnerAppRequest& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
53
55
58 inline const PartnerAppMaintenanceConfig& GetMaintenanceConfig() const { return m_maintenanceConfig; }
59 inline bool MaintenanceConfigHasBeenSet() const { return m_maintenanceConfigHasBeenSet; }
60 template<typename MaintenanceConfigT = PartnerAppMaintenanceConfig>
61 void SetMaintenanceConfig(MaintenanceConfigT&& value) { m_maintenanceConfigHasBeenSet = true; m_maintenanceConfig = std::forward<MaintenanceConfigT>(value); }
62 template<typename MaintenanceConfigT = PartnerAppMaintenanceConfig>
63 UpdatePartnerAppRequest& WithMaintenanceConfig(MaintenanceConfigT&& value) { SetMaintenanceConfig(std::forward<MaintenanceConfigT>(value)); return *this;}
65
67
71 inline const Aws::String& GetTier() const { return m_tier; }
72 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
73 template<typename TierT = Aws::String>
74 void SetTier(TierT&& value) { m_tierHasBeenSet = true; m_tier = std::forward<TierT>(value); }
75 template<typename TierT = Aws::String>
76 UpdatePartnerAppRequest& WithTier(TierT&& value) { SetTier(std::forward<TierT>(value)); return *this;}
78
80
83 inline const PartnerAppConfig& GetApplicationConfig() const { return m_applicationConfig; }
84 inline bool ApplicationConfigHasBeenSet() const { return m_applicationConfigHasBeenSet; }
85 template<typename ApplicationConfigT = PartnerAppConfig>
86 void SetApplicationConfig(ApplicationConfigT&& value) { m_applicationConfigHasBeenSet = true; m_applicationConfig = std::forward<ApplicationConfigT>(value); }
87 template<typename ApplicationConfigT = PartnerAppConfig>
88 UpdatePartnerAppRequest& WithApplicationConfig(ApplicationConfigT&& value) { SetApplicationConfig(std::forward<ApplicationConfigT>(value)); return *this;}
90
92
97 inline bool GetEnableIamSessionBasedIdentity() const { return m_enableIamSessionBasedIdentity; }
98 inline bool EnableIamSessionBasedIdentityHasBeenSet() const { return m_enableIamSessionBasedIdentityHasBeenSet; }
99 inline void SetEnableIamSessionBasedIdentity(bool value) { m_enableIamSessionBasedIdentityHasBeenSet = true; m_enableIamSessionBasedIdentity = value; }
102
104
107 inline const Aws::String& GetClientToken() const { return m_clientToken; }
108 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
109 template<typename ClientTokenT = Aws::String>
110 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
111 template<typename ClientTokenT = Aws::String>
112 UpdatePartnerAppRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
114
116
120 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 template<typename TagsT = Aws::Vector<Tag>>
123 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
124 template<typename TagsT = Aws::Vector<Tag>>
125 UpdatePartnerAppRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
126 template<typename TagsT = Tag>
127 UpdatePartnerAppRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
129 private:
130
131 Aws::String m_arn;
132 bool m_arnHasBeenSet = false;
133
134 PartnerAppMaintenanceConfig m_maintenanceConfig;
135 bool m_maintenanceConfigHasBeenSet = false;
136
137 Aws::String m_tier;
138 bool m_tierHasBeenSet = false;
139
140 PartnerAppConfig m_applicationConfig;
141 bool m_applicationConfigHasBeenSet = false;
142
143 bool m_enableIamSessionBasedIdentity{false};
144 bool m_enableIamSessionBasedIdentityHasBeenSet = false;
145
147 bool m_clientTokenHasBeenSet = true;
148
149 Aws::Vector<Tag> m_tags;
150 bool m_tagsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace SageMaker
155} // namespace Aws
UpdatePartnerAppRequest & WithTier(TierT &&value)
void SetApplicationConfig(ApplicationConfigT &&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)
const PartnerAppMaintenanceConfig & GetMaintenanceConfig() const
UpdatePartnerAppRequest & WithTags(TagsT &&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