AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Channel.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/DataSource.h>
10#include <aws/sagemaker/model/CompressionType.h>
11#include <aws/sagemaker/model/RecordWrapper.h>
12#include <aws/sagemaker/model/TrainingInputMode.h>
13#include <aws/sagemaker/model/ShuffleConfig.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
37 class Channel
38 {
39 public:
40 AWS_SAGEMAKER_API Channel() = default;
41 AWS_SAGEMAKER_API Channel(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SAGEMAKER_API Channel& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetChannelName() const { return m_channelName; }
51 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
52 template<typename ChannelNameT = Aws::String>
53 void SetChannelName(ChannelNameT&& value) { m_channelNameHasBeenSet = true; m_channelName = std::forward<ChannelNameT>(value); }
54 template<typename ChannelNameT = Aws::String>
55 Channel& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
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) { m_dataSourceHasBeenSet = true; m_dataSource = std::forward<DataSourceT>(value); }
66 template<typename DataSourceT = DataSource>
67 Channel& WithDataSource(DataSourceT&& value) { SetDataSource(std::forward<DataSourceT>(value)); return *this;}
69
71
74 inline const Aws::String& GetContentType() const { return m_contentType; }
75 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
76 template<typename ContentTypeT = Aws::String>
77 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
78 template<typename ContentTypeT = Aws::String>
79 Channel& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
81
83
88 inline CompressionType GetCompressionType() const { return m_compressionType; }
89 inline bool CompressionTypeHasBeenSet() const { return m_compressionTypeHasBeenSet; }
90 inline void SetCompressionType(CompressionType value) { m_compressionTypeHasBeenSet = true; m_compressionType = value; }
91 inline Channel& WithCompressionType(CompressionType value) { SetCompressionType(value); return *this;}
93
95
105 inline RecordWrapper GetRecordWrapperType() const { return m_recordWrapperType; }
106 inline bool RecordWrapperTypeHasBeenSet() const { return m_recordWrapperTypeHasBeenSet; }
107 inline void SetRecordWrapperType(RecordWrapper value) { m_recordWrapperTypeHasBeenSet = true; m_recordWrapperType = value; }
108 inline Channel& WithRecordWrapperType(RecordWrapper value) { SetRecordWrapperType(value); return *this;}
110
112
126 inline TrainingInputMode GetInputMode() const { return m_inputMode; }
127 inline bool InputModeHasBeenSet() const { return m_inputModeHasBeenSet; }
128 inline void SetInputMode(TrainingInputMode value) { m_inputModeHasBeenSet = true; m_inputMode = value; }
129 inline Channel& WithInputMode(TrainingInputMode value) { SetInputMode(value); return *this;}
131
133
149 inline const ShuffleConfig& GetShuffleConfig() const { return m_shuffleConfig; }
150 inline bool ShuffleConfigHasBeenSet() const { return m_shuffleConfigHasBeenSet; }
151 template<typename ShuffleConfigT = ShuffleConfig>
152 void SetShuffleConfig(ShuffleConfigT&& value) { m_shuffleConfigHasBeenSet = true; m_shuffleConfig = std::forward<ShuffleConfigT>(value); }
153 template<typename ShuffleConfigT = ShuffleConfig>
154 Channel& WithShuffleConfig(ShuffleConfigT&& value) { SetShuffleConfig(std::forward<ShuffleConfigT>(value)); return *this;}
156 private:
157
158 Aws::String m_channelName;
159 bool m_channelNameHasBeenSet = false;
160
161 DataSource m_dataSource;
162 bool m_dataSourceHasBeenSet = false;
163
164 Aws::String m_contentType;
165 bool m_contentTypeHasBeenSet = false;
166
167 CompressionType m_compressionType{CompressionType::NOT_SET};
168 bool m_compressionTypeHasBeenSet = false;
169
170 RecordWrapper m_recordWrapperType{RecordWrapper::NOT_SET};
171 bool m_recordWrapperTypeHasBeenSet = false;
172
174 bool m_inputModeHasBeenSet = false;
175
176 ShuffleConfig m_shuffleConfig;
177 bool m_shuffleConfigHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace SageMaker
182} // namespace Aws
const DataSource & GetDataSource() const
Definition Channel.h:62
Channel & WithCompressionType(CompressionType value)
Definition Channel.h:91
void SetRecordWrapperType(RecordWrapper value)
Definition Channel.h:107
TrainingInputMode GetInputMode() const
Definition Channel.h:126
void SetChannelName(ChannelNameT &&value)
Definition Channel.h:53
bool CompressionTypeHasBeenSet() const
Definition Channel.h:89
const Aws::String & GetContentType() const
Definition Channel.h:74
bool DataSourceHasBeenSet() const
Definition Channel.h:63
void SetShuffleConfig(ShuffleConfigT &&value)
Definition Channel.h:152
bool ContentTypeHasBeenSet() const
Definition Channel.h:75
const Aws::String & GetChannelName() const
Definition Channel.h:50
bool InputModeHasBeenSet() const
Definition Channel.h:127
Channel & WithDataSource(DataSourceT &&value)
Definition Channel.h:67
Channel & WithShuffleConfig(ShuffleConfigT &&value)
Definition Channel.h:154
void SetContentType(ContentTypeT &&value)
Definition Channel.h:77
Channel & WithChannelName(ChannelNameT &&value)
Definition Channel.h:55
RecordWrapper GetRecordWrapperType() const
Definition Channel.h:105
Channel & WithContentType(ContentTypeT &&value)
Definition Channel.h:79
bool ChannelNameHasBeenSet() const
Definition Channel.h:51
CompressionType GetCompressionType() const
Definition Channel.h:88
Channel & WithInputMode(TrainingInputMode value)
Definition Channel.h:129
bool RecordWrapperTypeHasBeenSet() const
Definition Channel.h:106
void SetDataSource(DataSourceT &&value)
Definition Channel.h:65
Channel & WithRecordWrapperType(RecordWrapper value)
Definition Channel.h:108
AWS_SAGEMAKER_API Channel()=default
bool ShuffleConfigHasBeenSet() const
Definition Channel.h:150
void SetInputMode(TrainingInputMode value)
Definition Channel.h:128
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:90
AWS_SAGEMAKER_API Channel(Aws::Utils::Json::JsonView jsonValue)
const ShuffleConfig & GetShuffleConfig() const
Definition Channel.h:149
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue