/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

A channel is a named input source that training algorithms can consume. This * channel is used for AutoML jobs V2 (jobs created by calling CreateAutoMLJobV2).

See * Also:

AWS * API Reference

*/ class AutoMLJobChannel { public: AWS_SAGEMAKER_API AutoMLJobChannel(); AWS_SAGEMAKER_API AutoMLJobChannel(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API AutoMLJobChannel& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The type of channel. Defines whether the data are used for training or * validation. The default value is training. Channels for * training and validation must share the same * ContentType

The type of channel defaults to * training for the time-series forecasting problem type.

*/ inline const AutoMLChannelType& GetChannelType() const{ return m_channelType; } /** *

The type of channel. Defines whether the data are used for training or * validation. The default value is training. Channels for * training and validation must share the same * ContentType

The type of channel defaults to * training for the time-series forecasting problem type.

*/ inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; } /** *

The type of channel. Defines whether the data are used for training or * validation. The default value is training. Channels for * training and validation must share the same * ContentType

The type of channel defaults to * training for the time-series forecasting problem type.

*/ inline void SetChannelType(const AutoMLChannelType& value) { m_channelTypeHasBeenSet = true; m_channelType = value; } /** *

The type of channel. Defines whether the data are used for training or * validation. The default value is training. Channels for * training and validation must share the same * ContentType

The type of channel defaults to * training for the time-series forecasting problem type.

*/ inline void SetChannelType(AutoMLChannelType&& value) { m_channelTypeHasBeenSet = true; m_channelType = std::move(value); } /** *

The type of channel. Defines whether the data are used for training or * validation. The default value is training. Channels for * training and validation must share the same * ContentType

The type of channel defaults to * training for the time-series forecasting problem type.

*/ inline AutoMLJobChannel& WithChannelType(const AutoMLChannelType& value) { SetChannelType(value); return *this;} /** *

The type of channel. Defines whether the data are used for training or * validation. The default value is training. Channels for * training and validation must share the same * ContentType

The type of channel defaults to * training for the time-series forecasting problem type.

*/ inline AutoMLJobChannel& WithChannelType(AutoMLChannelType&& value) { SetChannelType(std::move(value)); return *this;} /** *

The content type of the data from the input source. The following are the * allowed content types for different problems:

  • For tabular * problem types: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

  • For image * classification: image/png, image/jpeg, or * image/ *. The default value is image/ *.

  • *

    For text classification: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

  • For time-series * forecasting: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

The content type of the data from the input source. The following are the * allowed content types for different problems:

  • For tabular * problem types: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

  • For image * classification: image/png, image/jpeg, or * image/ *. The default value is image/ *.

  • *

    For text classification: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

  • For time-series * forecasting: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *

The content type of the data from the input source. The following are the * allowed content types for different problems:

  • For tabular * problem types: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

  • For image * classification: image/png, image/jpeg, or * image/ *. The default value is image/ *.

  • *

    For text classification: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

  • For time-series * forecasting: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

*/ inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *

The content type of the data from the input source. The following are the * allowed content types for different problems:

  • For tabular * problem types: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

  • For image * classification: image/png, image/jpeg, or * image/ *. The default value is image/ *.

  • *

    For text classification: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

  • For time-series * forecasting: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

*/ inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *

The content type of the data from the input source. The following are the * allowed content types for different problems:

  • For tabular * problem types: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

  • For image * classification: image/png, image/jpeg, or * image/ *. The default value is image/ *.

  • *

    For text classification: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

  • For time-series * forecasting: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

*/ inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } /** *

The content type of the data from the input source. The following are the * allowed content types for different problems:

  • For tabular * problem types: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

  • For image * classification: image/png, image/jpeg, or * image/ *. The default value is image/ *.

  • *

    For text classification: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

  • For time-series * forecasting: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

*/ inline AutoMLJobChannel& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

The content type of the data from the input source. The following are the * allowed content types for different problems:

  • For tabular * problem types: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

  • For image * classification: image/png, image/jpeg, or * image/ *. The default value is image/ *.

  • *

    For text classification: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

  • For time-series * forecasting: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

*/ inline AutoMLJobChannel& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

The content type of the data from the input source. The following are the * allowed content types for different problems:

  • For tabular * problem types: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

  • For image * classification: image/png, image/jpeg, or * image/ *. The default value is image/ *.

  • *

    For text classification: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

  • For time-series * forecasting: text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

*/ inline AutoMLJobChannel& WithContentType(const char* value) { SetContentType(value); return *this;} /** *

The allowed compression types depend on the input format and problem type. We * allow the compression type Gzip for S3Prefix inputs on * tabular data only. For all other inputs, the compression type should be * None. If no compression type is provided, we default to * None.

*/ inline const CompressionType& GetCompressionType() const{ return m_compressionType; } /** *

The allowed compression types depend on the input format and problem type. We * allow the compression type Gzip for S3Prefix inputs on * tabular data only. For all other inputs, the compression type should be * None. If no compression type is provided, we default to * None.

*/ inline bool CompressionTypeHasBeenSet() const { return m_compressionTypeHasBeenSet; } /** *

The allowed compression types depend on the input format and problem type. We * allow the compression type Gzip for S3Prefix inputs on * tabular data only. For all other inputs, the compression type should be * None. If no compression type is provided, we default to * None.

*/ inline void SetCompressionType(const CompressionType& value) { m_compressionTypeHasBeenSet = true; m_compressionType = value; } /** *

The allowed compression types depend on the input format and problem type. We * allow the compression type Gzip for S3Prefix inputs on * tabular data only. For all other inputs, the compression type should be * None. If no compression type is provided, we default to * None.

*/ inline void SetCompressionType(CompressionType&& value) { m_compressionTypeHasBeenSet = true; m_compressionType = std::move(value); } /** *

The allowed compression types depend on the input format and problem type. We * allow the compression type Gzip for S3Prefix inputs on * tabular data only. For all other inputs, the compression type should be * None. If no compression type is provided, we default to * None.

*/ inline AutoMLJobChannel& WithCompressionType(const CompressionType& value) { SetCompressionType(value); return *this;} /** *

The allowed compression types depend on the input format and problem type. We * allow the compression type Gzip for S3Prefix inputs on * tabular data only. For all other inputs, the compression type should be * None. If no compression type is provided, we default to * None.

*/ inline AutoMLJobChannel& WithCompressionType(CompressionType&& value) { SetCompressionType(std::move(value)); return *this;} /** *

The data source for an AutoML channel (Required).

*/ inline const AutoMLDataSource& GetDataSource() const{ return m_dataSource; } /** *

The data source for an AutoML channel (Required).

*/ inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; } /** *

The data source for an AutoML channel (Required).

*/ inline void SetDataSource(const AutoMLDataSource& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; } /** *

The data source for an AutoML channel (Required).

*/ inline void SetDataSource(AutoMLDataSource&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); } /** *

The data source for an AutoML channel (Required).

*/ inline AutoMLJobChannel& WithDataSource(const AutoMLDataSource& value) { SetDataSource(value); return *this;} /** *

The data source for an AutoML channel (Required).

*/ inline AutoMLJobChannel& WithDataSource(AutoMLDataSource&& value) { SetDataSource(std::move(value)); return *this;} private: AutoMLChannelType m_channelType; bool m_channelTypeHasBeenSet = false; Aws::String m_contentType; bool m_contentTypeHasBeenSet = false; CompressionType m_compressionType; bool m_compressionTypeHasBeenSet = false; AutoMLDataSource m_dataSource; bool m_dataSourceHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws