AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
CreateClusterExtensionRequest.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/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API CreateClusterExtensionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateClusterExtension"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
42 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
43 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
44 template <typename ClusterArnT = Aws::String>
45 void SetClusterArn(ClusterArnT&& value) {
46 m_clusterArnHasBeenSet = true;
47 m_clusterArn = std::forward<ClusterArnT>(value);
48 }
49 template <typename ClusterArnT = Aws::String>
51 SetClusterArn(std::forward<ClusterArnT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetExtensionName() const { return m_extensionName; }
62 inline bool ExtensionNameHasBeenSet() const { return m_extensionNameHasBeenSet; }
63 template <typename ExtensionNameT = Aws::String>
64 void SetExtensionName(ExtensionNameT&& value) {
65 m_extensionNameHasBeenSet = true;
66 m_extensionName = std::forward<ExtensionNameT>(value);
67 }
68 template <typename ExtensionNameT = Aws::String>
70 SetExtensionName(std::forward<ExtensionNameT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetExtensionVersion() const { return m_extensionVersion; }
82 inline bool ExtensionVersionHasBeenSet() const { return m_extensionVersionHasBeenSet; }
83 template <typename ExtensionVersionT = Aws::String>
84 void SetExtensionVersion(ExtensionVersionT&& value) {
85 m_extensionVersionHasBeenSet = true;
86 m_extensionVersion = std::forward<ExtensionVersionT>(value);
87 }
88 template <typename ExtensionVersionT = Aws::String>
90 SetExtensionVersion(std::forward<ExtensionVersionT>(value));
91 return *this;
92 }
94
96
106 inline const Aws::String& GetConfigurationValues() const { return m_configurationValues; }
107 inline bool ConfigurationValuesHasBeenSet() const { return m_configurationValuesHasBeenSet; }
108 template <typename ConfigurationValuesT = Aws::String>
109 void SetConfigurationValues(ConfigurationValuesT&& value) {
110 m_configurationValuesHasBeenSet = true;
111 m_configurationValues = std::forward<ConfigurationValuesT>(value);
112 }
113 template <typename ConfigurationValuesT = Aws::String>
115 SetConfigurationValues(std::forward<ConfigurationValuesT>(value));
116 return *this;
117 }
119
121
131 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 template <typename TagsT = Aws::Vector<Tag>>
134 void SetTags(TagsT&& value) {
135 m_tagsHasBeenSet = true;
136 m_tags = std::forward<TagsT>(value);
137 }
138 template <typename TagsT = Aws::Vector<Tag>>
140 SetTags(std::forward<TagsT>(value));
141 return *this;
142 }
143 template <typename TagsT = Tag>
145 m_tagsHasBeenSet = true;
146 m_tags.emplace_back(std::forward<TagsT>(value));
147 return *this;
148 }
150
152
160 inline const Aws::String& GetClientToken() const { return m_clientToken; }
161 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
162 template <typename ClientTokenT = Aws::String>
163 void SetClientToken(ClientTokenT&& value) {
164 m_clientTokenHasBeenSet = true;
165 m_clientToken = std::forward<ClientTokenT>(value);
166 }
167 template <typename ClientTokenT = Aws::String>
169 SetClientToken(std::forward<ClientTokenT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_clusterArn;
175
176 Aws::String m_extensionName;
177
178 Aws::String m_extensionVersion;
179
180 Aws::String m_configurationValues;
181
182 Aws::Vector<Tag> m_tags;
183
185 bool m_clusterArnHasBeenSet = false;
186 bool m_extensionNameHasBeenSet = false;
187 bool m_extensionVersionHasBeenSet = false;
188 bool m_configurationValuesHasBeenSet = false;
189 bool m_tagsHasBeenSet = false;
190 bool m_clientTokenHasBeenSet = true;
191};
192
193} // namespace Model
194} // namespace SageMaker
195} // namespace Aws
CreateClusterExtensionRequest & WithTags(TagsT &&value)
CreateClusterExtensionRequest & AddTags(TagsT &&value)
CreateClusterExtensionRequest & WithExtensionVersion(ExtensionVersionT &&value)
CreateClusterExtensionRequest & WithExtensionName(ExtensionNameT &&value)
CreateClusterExtensionRequest & WithClusterArn(ClusterArnT &&value)
CreateClusterExtensionRequest & WithClientToken(ClientTokenT &&value)
AWS_SAGEMAKER_API CreateClusterExtensionRequest()=default
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateClusterExtensionRequest & WithConfigurationValues(ConfigurationValuesT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
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