AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AutoMLChannel.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/AutoMLChannelType.h>
10#include <aws/sagemaker/model/AutoMLDataSource.h>
11#include <aws/sagemaker/model/CompressionType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
36 public:
37 AWS_SAGEMAKER_API AutoMLChannel() = default;
38 AWS_SAGEMAKER_API AutoMLChannel(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API AutoMLChannel& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const AutoMLDataSource& GetDataSource() const { return m_dataSource; }
47 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
48 template <typename DataSourceT = AutoMLDataSource>
49 void SetDataSource(DataSourceT&& value) {
50 m_dataSourceHasBeenSet = true;
51 m_dataSource = std::forward<DataSourceT>(value);
52 }
53 template <typename DataSourceT = AutoMLDataSource>
54 AutoMLChannel& WithDataSource(DataSourceT&& value) {
55 SetDataSource(std::forward<DataSourceT>(value));
56 return *this;
57 }
59
61
65 inline CompressionType GetCompressionType() const { return m_compressionType; }
66 inline bool CompressionTypeHasBeenSet() const { return m_compressionTypeHasBeenSet; }
68 m_compressionTypeHasBeenSet = true;
69 m_compressionType = value;
70 }
72 SetCompressionType(value);
73 return *this;
74 }
76
78
82 inline const Aws::String& GetTargetAttributeName() const { return m_targetAttributeName; }
83 inline bool TargetAttributeNameHasBeenSet() const { return m_targetAttributeNameHasBeenSet; }
84 template <typename TargetAttributeNameT = Aws::String>
85 void SetTargetAttributeName(TargetAttributeNameT&& value) {
86 m_targetAttributeNameHasBeenSet = true;
87 m_targetAttributeName = std::forward<TargetAttributeNameT>(value);
88 }
89 template <typename TargetAttributeNameT = Aws::String>
90 AutoMLChannel& WithTargetAttributeName(TargetAttributeNameT&& value) {
91 SetTargetAttributeName(std::forward<TargetAttributeNameT>(value));
92 return *this;
93 }
95
97
103 inline const Aws::String& GetContentType() const { return m_contentType; }
104 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
105 template <typename ContentTypeT = Aws::String>
106 void SetContentType(ContentTypeT&& value) {
107 m_contentTypeHasBeenSet = true;
108 m_contentType = std::forward<ContentTypeT>(value);
109 }
110 template <typename ContentTypeT = Aws::String>
111 AutoMLChannel& WithContentType(ContentTypeT&& value) {
112 SetContentType(std::forward<ContentTypeT>(value));
113 return *this;
114 }
116
118
126 inline AutoMLChannelType GetChannelType() const { return m_channelType; }
127 inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; }
129 m_channelTypeHasBeenSet = true;
130 m_channelType = value;
131 }
133 SetChannelType(value);
134 return *this;
135 }
137
139
153 inline const Aws::String& GetSampleWeightAttributeName() const { return m_sampleWeightAttributeName; }
154 inline bool SampleWeightAttributeNameHasBeenSet() const { return m_sampleWeightAttributeNameHasBeenSet; }
155 template <typename SampleWeightAttributeNameT = Aws::String>
156 void SetSampleWeightAttributeName(SampleWeightAttributeNameT&& value) {
157 m_sampleWeightAttributeNameHasBeenSet = true;
158 m_sampleWeightAttributeName = std::forward<SampleWeightAttributeNameT>(value);
159 }
160 template <typename SampleWeightAttributeNameT = Aws::String>
161 AutoMLChannel& WithSampleWeightAttributeName(SampleWeightAttributeNameT&& value) {
162 SetSampleWeightAttributeName(std::forward<SampleWeightAttributeNameT>(value));
163 return *this;
164 }
166 private:
167 AutoMLDataSource m_dataSource;
168
169 CompressionType m_compressionType{CompressionType::NOT_SET};
170
171 Aws::String m_targetAttributeName;
172
173 Aws::String m_contentType;
174
176
177 Aws::String m_sampleWeightAttributeName;
178 bool m_dataSourceHasBeenSet = false;
179 bool m_compressionTypeHasBeenSet = false;
180 bool m_targetAttributeNameHasBeenSet = false;
181 bool m_contentTypeHasBeenSet = false;
182 bool m_channelTypeHasBeenSet = false;
183 bool m_sampleWeightAttributeNameHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace SageMaker
188} // namespace Aws
AutoMLChannelType GetChannelType() const
const Aws::String & GetTargetAttributeName() const
AutoMLChannel & WithChannelType(AutoMLChannelType value)
AWS_SAGEMAKER_API AutoMLChannel(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSampleWeightAttributeName() const
void SetDataSource(DataSourceT &&value)
const AutoMLDataSource & GetDataSource() const
void SetCompressionType(CompressionType value)
void SetSampleWeightAttributeName(SampleWeightAttributeNameT &&value)
void SetContentType(ContentTypeT &&value)
void SetChannelType(AutoMLChannelType value)
AWS_SAGEMAKER_API AutoMLChannel()=default
const Aws::String & GetContentType() const
AutoMLChannel & WithTargetAttributeName(TargetAttributeNameT &&value)
AutoMLChannel & WithContentType(ContentTypeT &&value)
AWS_SAGEMAKER_API AutoMLChannel & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AutoMLChannel & WithDataSource(DataSourceT &&value)
AutoMLChannel & WithCompressionType(CompressionType value)
CompressionType GetCompressionType() const
void SetTargetAttributeName(TargetAttributeNameT &&value)
AutoMLChannel & WithSampleWeightAttributeName(SampleWeightAttributeNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue