AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Channel.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/CompressionType.h>
10#include <aws/sagemaker/model/DataSource.h>
11#include <aws/sagemaker/model/RecordWrapper.h>
12#include <aws/sagemaker/model/ShuffleConfig.h>
13#include <aws/sagemaker/model/TrainingInputMode.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
33class Channel {
34 public:
35 AWS_SAGEMAKER_API Channel() = default;
36 AWS_SAGEMAKER_API Channel(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKER_API Channel& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetChannelName() const { return m_channelName; }
45 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
46 template <typename ChannelNameT = Aws::String>
47 void SetChannelName(ChannelNameT&& value) {
48 m_channelNameHasBeenSet = true;
49 m_channelName = std::forward<ChannelNameT>(value);
50 }
51 template <typename ChannelNameT = Aws::String>
52 Channel& WithChannelName(ChannelNameT&& value) {
53 SetChannelName(std::forward<ChannelNameT>(value));
54 return *this;
55 }
57
59
62 inline const DataSource& GetDataSource() const { return m_dataSource; }
63 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
64 template <typename DataSourceT = DataSource>
65 void SetDataSource(DataSourceT&& value) {
66 m_dataSourceHasBeenSet = true;
67 m_dataSource = std::forward<DataSourceT>(value);
68 }
69 template <typename DataSourceT = DataSource>
70 Channel& WithDataSource(DataSourceT&& value) {
71 SetDataSource(std::forward<DataSourceT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetContentType() const { return m_contentType; }
81 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
82 template <typename ContentTypeT = Aws::String>
83 void SetContentType(ContentTypeT&& value) {
84 m_contentTypeHasBeenSet = true;
85 m_contentType = std::forward<ContentTypeT>(value);
86 }
87 template <typename ContentTypeT = Aws::String>
88 Channel& WithContentType(ContentTypeT&& value) {
89 SetContentType(std::forward<ContentTypeT>(value));
90 return *this;
91 }
93
95
100 inline CompressionType GetCompressionType() const { return m_compressionType; }
101 inline bool CompressionTypeHasBeenSet() const { return m_compressionTypeHasBeenSet; }
103 m_compressionTypeHasBeenSet = true;
104 m_compressionType = value;
105 }
107 SetCompressionType(value);
108 return *this;
109 }
111
113
123 inline RecordWrapper GetRecordWrapperType() const { return m_recordWrapperType; }
124 inline bool RecordWrapperTypeHasBeenSet() const { return m_recordWrapperTypeHasBeenSet; }
126 m_recordWrapperTypeHasBeenSet = true;
127 m_recordWrapperType = value;
128 }
131 return *this;
132 }
134
136
150 inline TrainingInputMode GetInputMode() const { return m_inputMode; }
151 inline bool InputModeHasBeenSet() const { return m_inputModeHasBeenSet; }
152 inline void SetInputMode(TrainingInputMode value) {
153 m_inputModeHasBeenSet = true;
154 m_inputMode = value;
155 }
157 SetInputMode(value);
158 return *this;
159 }
161
163
179 inline const ShuffleConfig& GetShuffleConfig() const { return m_shuffleConfig; }
180 inline bool ShuffleConfigHasBeenSet() const { return m_shuffleConfigHasBeenSet; }
181 template <typename ShuffleConfigT = ShuffleConfig>
182 void SetShuffleConfig(ShuffleConfigT&& value) {
183 m_shuffleConfigHasBeenSet = true;
184 m_shuffleConfig = std::forward<ShuffleConfigT>(value);
185 }
186 template <typename ShuffleConfigT = ShuffleConfig>
187 Channel& WithShuffleConfig(ShuffleConfigT&& value) {
188 SetShuffleConfig(std::forward<ShuffleConfigT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_channelName;
194
195 DataSource m_dataSource;
196
197 Aws::String m_contentType;
198
199 CompressionType m_compressionType{CompressionType::NOT_SET};
200
201 RecordWrapper m_recordWrapperType{RecordWrapper::NOT_SET};
202
204
205 ShuffleConfig m_shuffleConfig;
206 bool m_channelNameHasBeenSet = false;
207 bool m_dataSourceHasBeenSet = false;
208 bool m_contentTypeHasBeenSet = false;
209 bool m_compressionTypeHasBeenSet = false;
210 bool m_recordWrapperTypeHasBeenSet = false;
211 bool m_inputModeHasBeenSet = false;
212 bool m_shuffleConfigHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace SageMaker
217} // namespace Aws
const DataSource & GetDataSource() const
Definition Channel.h:62
Channel & WithCompressionType(CompressionType value)
Definition Channel.h:106
void SetRecordWrapperType(RecordWrapper value)
Definition Channel.h:125
TrainingInputMode GetInputMode() const
Definition Channel.h:150
void SetChannelName(ChannelNameT &&value)
Definition Channel.h:47
bool CompressionTypeHasBeenSet() const
Definition Channel.h:101
const Aws::String & GetContentType() const
Definition Channel.h:80
bool DataSourceHasBeenSet() const
Definition Channel.h:63
void SetShuffleConfig(ShuffleConfigT &&value)
Definition Channel.h:182
bool ContentTypeHasBeenSet() const
Definition Channel.h:81
const Aws::String & GetChannelName() const
Definition Channel.h:44
bool InputModeHasBeenSet() const
Definition Channel.h:151
Channel & WithDataSource(DataSourceT &&value)
Definition Channel.h:70
Channel & WithShuffleConfig(ShuffleConfigT &&value)
Definition Channel.h:187
void SetContentType(ContentTypeT &&value)
Definition Channel.h:83
Channel & WithChannelName(ChannelNameT &&value)
Definition Channel.h:52
RecordWrapper GetRecordWrapperType() const
Definition Channel.h:123
Channel & WithContentType(ContentTypeT &&value)
Definition Channel.h:88
bool ChannelNameHasBeenSet() const
Definition Channel.h:45
CompressionType GetCompressionType() const
Definition Channel.h:100
Channel & WithInputMode(TrainingInputMode value)
Definition Channel.h:156
bool RecordWrapperTypeHasBeenSet() const
Definition Channel.h:124
void SetDataSource(DataSourceT &&value)
Definition Channel.h:65
Channel & WithRecordWrapperType(RecordWrapper value)
Definition Channel.h:129
AWS_SAGEMAKER_API Channel()=default
bool ShuffleConfigHasBeenSet() const
Definition Channel.h:180
void SetInputMode(TrainingInputMode value)
Definition Channel.h:152
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API Channel & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCompressionType(CompressionType value)
Definition Channel.h:102
AWS_SAGEMAKER_API Channel(Aws::Utils::Json::JsonView jsonValue)
const ShuffleConfig & GetShuffleConfig() const
Definition Channel.h:179
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue