AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
S3DataSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/HubAccessConfig.h>
11#include <aws/sagemaker/model/ModelAccessConfig.h>
12#include <aws/sagemaker/model/S3DataDistribution.h>
13#include <aws/sagemaker/model/S3DataType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker {
25namespace Model {
26
34 public:
35 AWS_SAGEMAKER_API S3DataSource() = default;
36 AWS_SAGEMAKER_API S3DataSource(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKER_API S3DataSource& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
57 inline S3DataType GetS3DataType() const { return m_s3DataType; }
58 inline bool S3DataTypeHasBeenSet() const { return m_s3DataTypeHasBeenSet; }
59 inline void SetS3DataType(S3DataType value) {
60 m_s3DataTypeHasBeenSet = true;
61 m_s3DataType = value;
62 }
64 SetS3DataType(value);
65 return *this;
66 }
68
70
98 inline const Aws::String& GetS3Uri() const { return m_s3Uri; }
99 inline bool S3UriHasBeenSet() const { return m_s3UriHasBeenSet; }
100 template <typename S3UriT = Aws::String>
101 void SetS3Uri(S3UriT&& value) {
102 m_s3UriHasBeenSet = true;
103 m_s3Uri = std::forward<S3UriT>(value);
104 }
105 template <typename S3UriT = Aws::String>
106 S3DataSource& WithS3Uri(S3UriT&& value) {
107 SetS3Uri(std::forward<S3UriT>(value));
108 return *this;
109 }
111
113
130 inline S3DataDistribution GetS3DataDistributionType() const { return m_s3DataDistributionType; }
131 inline bool S3DataDistributionTypeHasBeenSet() const { return m_s3DataDistributionTypeHasBeenSet; }
133 m_s3DataDistributionTypeHasBeenSet = true;
134 m_s3DataDistributionType = value;
135 }
138 return *this;
139 }
141
143
147 inline const Aws::Vector<Aws::String>& GetAttributeNames() const { return m_attributeNames; }
148 inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
149 template <typename AttributeNamesT = Aws::Vector<Aws::String>>
150 void SetAttributeNames(AttributeNamesT&& value) {
151 m_attributeNamesHasBeenSet = true;
152 m_attributeNames = std::forward<AttributeNamesT>(value);
153 }
154 template <typename AttributeNamesT = Aws::Vector<Aws::String>>
155 S3DataSource& WithAttributeNames(AttributeNamesT&& value) {
156 SetAttributeNames(std::forward<AttributeNamesT>(value));
157 return *this;
158 }
159 template <typename AttributeNamesT = Aws::String>
160 S3DataSource& AddAttributeNames(AttributeNamesT&& value) {
161 m_attributeNamesHasBeenSet = true;
162 m_attributeNames.emplace_back(std::forward<AttributeNamesT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Vector<Aws::String>& GetInstanceGroupNames() const { return m_instanceGroupNames; }
172 inline bool InstanceGroupNamesHasBeenSet() const { return m_instanceGroupNamesHasBeenSet; }
173 template <typename InstanceGroupNamesT = Aws::Vector<Aws::String>>
174 void SetInstanceGroupNames(InstanceGroupNamesT&& value) {
175 m_instanceGroupNamesHasBeenSet = true;
176 m_instanceGroupNames = std::forward<InstanceGroupNamesT>(value);
177 }
178 template <typename InstanceGroupNamesT = Aws::Vector<Aws::String>>
179 S3DataSource& WithInstanceGroupNames(InstanceGroupNamesT&& value) {
180 SetInstanceGroupNames(std::forward<InstanceGroupNamesT>(value));
181 return *this;
182 }
183 template <typename InstanceGroupNamesT = Aws::String>
184 S3DataSource& AddInstanceGroupNames(InstanceGroupNamesT&& value) {
185 m_instanceGroupNamesHasBeenSet = true;
186 m_instanceGroupNames.emplace_back(std::forward<InstanceGroupNamesT>(value));
187 return *this;
188 }
190
192
193 inline const ModelAccessConfig& GetModelAccessConfig() const { return m_modelAccessConfig; }
194 inline bool ModelAccessConfigHasBeenSet() const { return m_modelAccessConfigHasBeenSet; }
195 template <typename ModelAccessConfigT = ModelAccessConfig>
196 void SetModelAccessConfig(ModelAccessConfigT&& value) {
197 m_modelAccessConfigHasBeenSet = true;
198 m_modelAccessConfig = std::forward<ModelAccessConfigT>(value);
199 }
200 template <typename ModelAccessConfigT = ModelAccessConfig>
201 S3DataSource& WithModelAccessConfig(ModelAccessConfigT&& value) {
202 SetModelAccessConfig(std::forward<ModelAccessConfigT>(value));
203 return *this;
204 }
206
208
212 inline const HubAccessConfig& GetHubAccessConfig() const { return m_hubAccessConfig; }
213 inline bool HubAccessConfigHasBeenSet() const { return m_hubAccessConfigHasBeenSet; }
214 template <typename HubAccessConfigT = HubAccessConfig>
215 void SetHubAccessConfig(HubAccessConfigT&& value) {
216 m_hubAccessConfigHasBeenSet = true;
217 m_hubAccessConfig = std::forward<HubAccessConfigT>(value);
218 }
219 template <typename HubAccessConfigT = HubAccessConfig>
220 S3DataSource& WithHubAccessConfig(HubAccessConfigT&& value) {
221 SetHubAccessConfig(std::forward<HubAccessConfigT>(value));
222 return *this;
223 }
225 private:
226 S3DataType m_s3DataType{S3DataType::NOT_SET};
227
228 Aws::String m_s3Uri;
229
230 S3DataDistribution m_s3DataDistributionType{S3DataDistribution::NOT_SET};
231
232 Aws::Vector<Aws::String> m_attributeNames;
233
234 Aws::Vector<Aws::String> m_instanceGroupNames;
235
236 ModelAccessConfig m_modelAccessConfig;
237
238 HubAccessConfig m_hubAccessConfig;
239 bool m_s3DataTypeHasBeenSet = false;
240 bool m_s3UriHasBeenSet = false;
241 bool m_s3DataDistributionTypeHasBeenSet = false;
242 bool m_attributeNamesHasBeenSet = false;
243 bool m_instanceGroupNamesHasBeenSet = false;
244 bool m_modelAccessConfigHasBeenSet = false;
245 bool m_hubAccessConfigHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace SageMaker
250} // namespace Aws
S3DataSource & WithS3DataDistributionType(S3DataDistribution value)
const Aws::Vector< Aws::String > & GetInstanceGroupNames() const
S3DataSource & WithInstanceGroupNames(InstanceGroupNamesT &&value)
S3DataDistribution GetS3DataDistributionType() const
const Aws::String & GetS3Uri() const
void SetS3DataDistributionType(S3DataDistribution value)
S3DataSource & WithAttributeNames(AttributeNamesT &&value)
const ModelAccessConfig & GetModelAccessConfig() const
AWS_SAGEMAKER_API S3DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
S3DataSource & WithS3DataType(S3DataType value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
S3DataSource & AddInstanceGroupNames(InstanceGroupNamesT &&value)
void SetHubAccessConfig(HubAccessConfigT &&value)
void SetModelAccessConfig(ModelAccessConfigT &&value)
const HubAccessConfig & GetHubAccessConfig() const
AWS_SAGEMAKER_API S3DataSource(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAttributeNames() const
void SetS3DataType(S3DataType value)
AWS_SAGEMAKER_API S3DataSource()=default
S3DataSource & WithModelAccessConfig(ModelAccessConfigT &&value)
S3DataSource & WithHubAccessConfig(HubAccessConfigT &&value)
void SetInstanceGroupNames(InstanceGroupNamesT &&value)
void SetAttributeNames(AttributeNamesT &&value)
S3DataSource & WithS3Uri(S3UriT &&value)
S3DataSource & AddAttributeNames(AttributeNamesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue