/** * 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 Rekognition { namespace Model { /** *

The dataset used for testing. Optionally, if AutoCreate is set, * Amazon Rekognition Custom Labels uses the training dataset to create a test * dataset with a temporary split of the training dataset.

See * Also:

AWS * API Reference

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

The assets used for testing.

*/ inline const Aws::Vector& GetAssets() const{ return m_assets; } /** *

The assets used for testing.

*/ inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; } /** *

The assets used for testing.

*/ inline void SetAssets(const Aws::Vector& value) { m_assetsHasBeenSet = true; m_assets = value; } /** *

The assets used for testing.

*/ inline void SetAssets(Aws::Vector&& value) { m_assetsHasBeenSet = true; m_assets = std::move(value); } /** *

The assets used for testing.

*/ inline TestingData& WithAssets(const Aws::Vector& value) { SetAssets(value); return *this;} /** *

The assets used for testing.

*/ inline TestingData& WithAssets(Aws::Vector&& value) { SetAssets(std::move(value)); return *this;} /** *

The assets used for testing.

*/ inline TestingData& AddAssets(const Asset& value) { m_assetsHasBeenSet = true; m_assets.push_back(value); return *this; } /** *

The assets used for testing.

*/ inline TestingData& AddAssets(Asset&& value) { m_assetsHasBeenSet = true; m_assets.push_back(std::move(value)); return *this; } /** *

If specified, Amazon Rekognition Custom Labels temporarily splits the * training dataset (80%) to create a test dataset (20%) for the training job. * After training completes, the test dataset is not stored and the training * dataset reverts to its previous size.

*/ inline bool GetAutoCreate() const{ return m_autoCreate; } /** *

If specified, Amazon Rekognition Custom Labels temporarily splits the * training dataset (80%) to create a test dataset (20%) for the training job. * After training completes, the test dataset is not stored and the training * dataset reverts to its previous size.

*/ inline bool AutoCreateHasBeenSet() const { return m_autoCreateHasBeenSet; } /** *

If specified, Amazon Rekognition Custom Labels temporarily splits the * training dataset (80%) to create a test dataset (20%) for the training job. * After training completes, the test dataset is not stored and the training * dataset reverts to its previous size.

*/ inline void SetAutoCreate(bool value) { m_autoCreateHasBeenSet = true; m_autoCreate = value; } /** *

If specified, Amazon Rekognition Custom Labels temporarily splits the * training dataset (80%) to create a test dataset (20%) for the training job. * After training completes, the test dataset is not stored and the training * dataset reverts to its previous size.

*/ inline TestingData& WithAutoCreate(bool value) { SetAutoCreate(value); return *this;} private: Aws::Vector m_assets; bool m_assetsHasBeenSet = false; bool m_autoCreate; bool m_autoCreateHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws