AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
S3DataSource.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/S3DataType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/S3DataDistribution.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/ModelAccessConfig.h>
13#include <aws/sagemaker/model/HubAccessConfig.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_SAGEMAKER_API S3DataSource() = default;
41 AWS_SAGEMAKER_API S3DataSource(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SAGEMAKER_API S3DataSource& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
63 inline S3DataType GetS3DataType() const { return m_s3DataType; }
64 inline bool S3DataTypeHasBeenSet() const { return m_s3DataTypeHasBeenSet; }
65 inline void SetS3DataType(S3DataType value) { m_s3DataTypeHasBeenSet = true; m_s3DataType = value; }
66 inline S3DataSource& WithS3DataType(S3DataType value) { SetS3DataType(value); return *this;}
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) { m_s3UriHasBeenSet = true; m_s3Uri = std::forward<S3UriT>(value); }
102 template<typename S3UriT = Aws::String>
103 S3DataSource& WithS3Uri(S3UriT&& value) { SetS3Uri(std::forward<S3UriT>(value)); return *this;}
105
107
124 inline S3DataDistribution GetS3DataDistributionType() const { return m_s3DataDistributionType; }
125 inline bool S3DataDistributionTypeHasBeenSet() const { return m_s3DataDistributionTypeHasBeenSet; }
126 inline void SetS3DataDistributionType(S3DataDistribution value) { m_s3DataDistributionTypeHasBeenSet = true; m_s3DataDistributionType = value; }
129
131
135 inline const Aws::Vector<Aws::String>& GetAttributeNames() const { return m_attributeNames; }
136 inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
137 template<typename AttributeNamesT = Aws::Vector<Aws::String>>
138 void SetAttributeNames(AttributeNamesT&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::forward<AttributeNamesT>(value); }
139 template<typename AttributeNamesT = Aws::Vector<Aws::String>>
140 S3DataSource& WithAttributeNames(AttributeNamesT&& value) { SetAttributeNames(std::forward<AttributeNamesT>(value)); return *this;}
141 template<typename AttributeNamesT = Aws::String>
142 S3DataSource& AddAttributeNames(AttributeNamesT&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.emplace_back(std::forward<AttributeNamesT>(value)); return *this; }
144
146
149 inline const Aws::Vector<Aws::String>& GetInstanceGroupNames() const { return m_instanceGroupNames; }
150 inline bool InstanceGroupNamesHasBeenSet() const { return m_instanceGroupNamesHasBeenSet; }
151 template<typename InstanceGroupNamesT = Aws::Vector<Aws::String>>
152 void SetInstanceGroupNames(InstanceGroupNamesT&& value) { m_instanceGroupNamesHasBeenSet = true; m_instanceGroupNames = std::forward<InstanceGroupNamesT>(value); }
153 template<typename InstanceGroupNamesT = Aws::Vector<Aws::String>>
154 S3DataSource& WithInstanceGroupNames(InstanceGroupNamesT&& value) { SetInstanceGroupNames(std::forward<InstanceGroupNamesT>(value)); return *this;}
155 template<typename InstanceGroupNamesT = Aws::String>
156 S3DataSource& AddInstanceGroupNames(InstanceGroupNamesT&& value) { m_instanceGroupNamesHasBeenSet = true; m_instanceGroupNames.emplace_back(std::forward<InstanceGroupNamesT>(value)); return *this; }
158
160
161 inline const ModelAccessConfig& GetModelAccessConfig() const { return m_modelAccessConfig; }
162 inline bool ModelAccessConfigHasBeenSet() const { return m_modelAccessConfigHasBeenSet; }
163 template<typename ModelAccessConfigT = ModelAccessConfig>
164 void SetModelAccessConfig(ModelAccessConfigT&& value) { m_modelAccessConfigHasBeenSet = true; m_modelAccessConfig = std::forward<ModelAccessConfigT>(value); }
165 template<typename ModelAccessConfigT = ModelAccessConfig>
166 S3DataSource& WithModelAccessConfig(ModelAccessConfigT&& value) { SetModelAccessConfig(std::forward<ModelAccessConfigT>(value)); return *this;}
168
170
174 inline const HubAccessConfig& GetHubAccessConfig() const { return m_hubAccessConfig; }
175 inline bool HubAccessConfigHasBeenSet() const { return m_hubAccessConfigHasBeenSet; }
176 template<typename HubAccessConfigT = HubAccessConfig>
177 void SetHubAccessConfig(HubAccessConfigT&& value) { m_hubAccessConfigHasBeenSet = true; m_hubAccessConfig = std::forward<HubAccessConfigT>(value); }
178 template<typename HubAccessConfigT = HubAccessConfig>
179 S3DataSource& WithHubAccessConfig(HubAccessConfigT&& value) { SetHubAccessConfig(std::forward<HubAccessConfigT>(value)); return *this;}
181 private:
182
183 S3DataType m_s3DataType{S3DataType::NOT_SET};
184 bool m_s3DataTypeHasBeenSet = false;
185
186 Aws::String m_s3Uri;
187 bool m_s3UriHasBeenSet = false;
188
189 S3DataDistribution m_s3DataDistributionType{S3DataDistribution::NOT_SET};
190 bool m_s3DataDistributionTypeHasBeenSet = false;
191
192 Aws::Vector<Aws::String> m_attributeNames;
193 bool m_attributeNamesHasBeenSet = false;
194
195 Aws::Vector<Aws::String> m_instanceGroupNames;
196 bool m_instanceGroupNamesHasBeenSet = false;
197
198 ModelAccessConfig m_modelAccessConfig;
199 bool m_modelAccessConfigHasBeenSet = false;
200
201 HubAccessConfig m_hubAccessConfig;
202 bool m_hubAccessConfigHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace SageMaker
207} // 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