AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreatePartnerAppRequest.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/PartnerAppType.h>
11#include <aws/sagemaker/model/PartnerAppMaintenanceConfig.h>
12#include <aws/sagemaker/model/PartnerAppConfig.h>
13#include <aws/sagemaker/model/PartnerAppAuthType.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/sagemaker/model/Tag.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace SageMaker
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_SAGEMAKER_API CreatePartnerAppRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreatePartnerApp"; }
38
39 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 CreatePartnerAppRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
62 inline PartnerAppType GetType() const { return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(PartnerAppType value) { m_typeHasBeenSet = true; m_type = value; }
65 inline CreatePartnerAppRequest& WithType(PartnerAppType value) { SetType(value); return *this;}
67
69
72 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
73 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
74 template<typename ExecutionRoleArnT = Aws::String>
75 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
76 template<typename ExecutionRoleArnT = Aws::String>
77 CreatePartnerAppRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
79
81
86 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
87 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
88 template<typename KmsKeyIdT = Aws::String>
89 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
90 template<typename KmsKeyIdT = Aws::String>
91 CreatePartnerAppRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
93
95
98 inline const PartnerAppMaintenanceConfig& GetMaintenanceConfig() const { return m_maintenanceConfig; }
99 inline bool MaintenanceConfigHasBeenSet() const { return m_maintenanceConfigHasBeenSet; }
100 template<typename MaintenanceConfigT = PartnerAppMaintenanceConfig>
101 void SetMaintenanceConfig(MaintenanceConfigT&& value) { m_maintenanceConfigHasBeenSet = true; m_maintenanceConfig = std::forward<MaintenanceConfigT>(value); }
102 template<typename MaintenanceConfigT = PartnerAppMaintenanceConfig>
103 CreatePartnerAppRequest& WithMaintenanceConfig(MaintenanceConfigT&& value) { SetMaintenanceConfig(std::forward<MaintenanceConfigT>(value)); return *this;}
105
107
111 inline const Aws::String& GetTier() const { return m_tier; }
112 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
113 template<typename TierT = Aws::String>
114 void SetTier(TierT&& value) { m_tierHasBeenSet = true; m_tier = std::forward<TierT>(value); }
115 template<typename TierT = Aws::String>
116 CreatePartnerAppRequest& WithTier(TierT&& value) { SetTier(std::forward<TierT>(value)); return *this;}
118
120
123 inline const PartnerAppConfig& GetApplicationConfig() const { return m_applicationConfig; }
124 inline bool ApplicationConfigHasBeenSet() const { return m_applicationConfigHasBeenSet; }
125 template<typename ApplicationConfigT = PartnerAppConfig>
126 void SetApplicationConfig(ApplicationConfigT&& value) { m_applicationConfigHasBeenSet = true; m_applicationConfig = std::forward<ApplicationConfigT>(value); }
127 template<typename ApplicationConfigT = PartnerAppConfig>
128 CreatePartnerAppRequest& WithApplicationConfig(ApplicationConfigT&& value) { SetApplicationConfig(std::forward<ApplicationConfigT>(value)); return *this;}
130
132
136 inline PartnerAppAuthType GetAuthType() const { return m_authType; }
137 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
138 inline void SetAuthType(PartnerAppAuthType value) { m_authTypeHasBeenSet = true; m_authType = value; }
141
143
148 inline bool GetEnableIamSessionBasedIdentity() const { return m_enableIamSessionBasedIdentity; }
149 inline bool EnableIamSessionBasedIdentityHasBeenSet() const { return m_enableIamSessionBasedIdentityHasBeenSet; }
150 inline void SetEnableIamSessionBasedIdentity(bool value) { m_enableIamSessionBasedIdentityHasBeenSet = true; m_enableIamSessionBasedIdentity = value; }
153
155
158 inline const Aws::String& GetClientToken() const { return m_clientToken; }
159 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
160 template<typename ClientTokenT = Aws::String>
161 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
162 template<typename ClientTokenT = Aws::String>
163 CreatePartnerAppRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
165
167
171 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
172 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
173 template<typename TagsT = Aws::Vector<Tag>>
174 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
175 template<typename TagsT = Aws::Vector<Tag>>
176 CreatePartnerAppRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
177 template<typename TagsT = Tag>
178 CreatePartnerAppRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
180 private:
181
182 Aws::String m_name;
183 bool m_nameHasBeenSet = false;
184
186 bool m_typeHasBeenSet = false;
187
188 Aws::String m_executionRoleArn;
189 bool m_executionRoleArnHasBeenSet = false;
190
191 Aws::String m_kmsKeyId;
192 bool m_kmsKeyIdHasBeenSet = false;
193
194 PartnerAppMaintenanceConfig m_maintenanceConfig;
195 bool m_maintenanceConfigHasBeenSet = false;
196
197 Aws::String m_tier;
198 bool m_tierHasBeenSet = false;
199
200 PartnerAppConfig m_applicationConfig;
201 bool m_applicationConfigHasBeenSet = false;
202
204 bool m_authTypeHasBeenSet = false;
205
206 bool m_enableIamSessionBasedIdentity{false};
207 bool m_enableIamSessionBasedIdentityHasBeenSet = false;
208
210 bool m_clientTokenHasBeenSet = true;
211
212 Aws::Vector<Tag> m_tags;
213 bool m_tagsHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace SageMaker
218} // 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)
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