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

Stores the configuration information for the text classification problem of * an AutoML job V2.

See Also:

AWS * API Reference

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

How long a job is allowed to run, or how many candidates a job is allowed to * generate.

*/ inline const AutoMLJobCompletionCriteria& GetCompletionCriteria() const{ return m_completionCriteria; } /** *

How long a job is allowed to run, or how many candidates a job is allowed to * generate.

*/ inline bool CompletionCriteriaHasBeenSet() const { return m_completionCriteriaHasBeenSet; } /** *

How long a job is allowed to run, or how many candidates a job is allowed to * generate.

*/ inline void SetCompletionCriteria(const AutoMLJobCompletionCriteria& value) { m_completionCriteriaHasBeenSet = true; m_completionCriteria = value; } /** *

How long a job is allowed to run, or how many candidates a job is allowed to * generate.

*/ inline void SetCompletionCriteria(AutoMLJobCompletionCriteria&& value) { m_completionCriteriaHasBeenSet = true; m_completionCriteria = std::move(value); } /** *

How long a job is allowed to run, or how many candidates a job is allowed to * generate.

*/ inline TextClassificationJobConfig& WithCompletionCriteria(const AutoMLJobCompletionCriteria& value) { SetCompletionCriteria(value); return *this;} /** *

How long a job is allowed to run, or how many candidates a job is allowed to * generate.

*/ inline TextClassificationJobConfig& WithCompletionCriteria(AutoMLJobCompletionCriteria&& value) { SetCompletionCriteria(std::move(value)); return *this;} /** *

The name of the column used to provide the sentences to be classified. It * should not be the same as the target column.

*/ inline const Aws::String& GetContentColumn() const{ return m_contentColumn; } /** *

The name of the column used to provide the sentences to be classified. It * should not be the same as the target column.

*/ inline bool ContentColumnHasBeenSet() const { return m_contentColumnHasBeenSet; } /** *

The name of the column used to provide the sentences to be classified. It * should not be the same as the target column.

*/ inline void SetContentColumn(const Aws::String& value) { m_contentColumnHasBeenSet = true; m_contentColumn = value; } /** *

The name of the column used to provide the sentences to be classified. It * should not be the same as the target column.

*/ inline void SetContentColumn(Aws::String&& value) { m_contentColumnHasBeenSet = true; m_contentColumn = std::move(value); } /** *

The name of the column used to provide the sentences to be classified. It * should not be the same as the target column.

*/ inline void SetContentColumn(const char* value) { m_contentColumnHasBeenSet = true; m_contentColumn.assign(value); } /** *

The name of the column used to provide the sentences to be classified. It * should not be the same as the target column.

*/ inline TextClassificationJobConfig& WithContentColumn(const Aws::String& value) { SetContentColumn(value); return *this;} /** *

The name of the column used to provide the sentences to be classified. It * should not be the same as the target column.

*/ inline TextClassificationJobConfig& WithContentColumn(Aws::String&& value) { SetContentColumn(std::move(value)); return *this;} /** *

The name of the column used to provide the sentences to be classified. It * should not be the same as the target column.

*/ inline TextClassificationJobConfig& WithContentColumn(const char* value) { SetContentColumn(value); return *this;} /** *

The name of the column used to provide the class labels. It should not be * same as the content column.

*/ inline const Aws::String& GetTargetLabelColumn() const{ return m_targetLabelColumn; } /** *

The name of the column used to provide the class labels. It should not be * same as the content column.

*/ inline bool TargetLabelColumnHasBeenSet() const { return m_targetLabelColumnHasBeenSet; } /** *

The name of the column used to provide the class labels. It should not be * same as the content column.

*/ inline void SetTargetLabelColumn(const Aws::String& value) { m_targetLabelColumnHasBeenSet = true; m_targetLabelColumn = value; } /** *

The name of the column used to provide the class labels. It should not be * same as the content column.

*/ inline void SetTargetLabelColumn(Aws::String&& value) { m_targetLabelColumnHasBeenSet = true; m_targetLabelColumn = std::move(value); } /** *

The name of the column used to provide the class labels. It should not be * same as the content column.

*/ inline void SetTargetLabelColumn(const char* value) { m_targetLabelColumnHasBeenSet = true; m_targetLabelColumn.assign(value); } /** *

The name of the column used to provide the class labels. It should not be * same as the content column.

*/ inline TextClassificationJobConfig& WithTargetLabelColumn(const Aws::String& value) { SetTargetLabelColumn(value); return *this;} /** *

The name of the column used to provide the class labels. It should not be * same as the content column.

*/ inline TextClassificationJobConfig& WithTargetLabelColumn(Aws::String&& value) { SetTargetLabelColumn(std::move(value)); return *this;} /** *

The name of the column used to provide the class labels. It should not be * same as the content column.

*/ inline TextClassificationJobConfig& WithTargetLabelColumn(const char* value) { SetTargetLabelColumn(value); return *this;} private: AutoMLJobCompletionCriteria m_completionCriteria; bool m_completionCriteriaHasBeenSet = false; Aws::String m_contentColumn; bool m_contentColumnHasBeenSet = false; Aws::String m_targetLabelColumn; bool m_targetLabelColumnHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws