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

Defines the input needed to run a transform job using the inference * specification specified in the algorithm.

See Also:

AWS * API Reference

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

The maximum number of parallel requests that can be sent to each instance in * a transform job. The default value is 1.

*/ inline int GetMaxConcurrentTransforms() const{ return m_maxConcurrentTransforms; } /** *

The maximum number of parallel requests that can be sent to each instance in * a transform job. The default value is 1.

*/ inline bool MaxConcurrentTransformsHasBeenSet() const { return m_maxConcurrentTransformsHasBeenSet; } /** *

The maximum number of parallel requests that can be sent to each instance in * a transform job. The default value is 1.

*/ inline void SetMaxConcurrentTransforms(int value) { m_maxConcurrentTransformsHasBeenSet = true; m_maxConcurrentTransforms = value; } /** *

The maximum number of parallel requests that can be sent to each instance in * a transform job. The default value is 1.

*/ inline TransformJobDefinition& WithMaxConcurrentTransforms(int value) { SetMaxConcurrentTransforms(value); return *this;} /** *

The maximum payload size allowed, in MB. A payload is the data portion of a * record (without metadata).

*/ inline int GetMaxPayloadInMB() const{ return m_maxPayloadInMB; } /** *

The maximum payload size allowed, in MB. A payload is the data portion of a * record (without metadata).

*/ inline bool MaxPayloadInMBHasBeenSet() const { return m_maxPayloadInMBHasBeenSet; } /** *

The maximum payload size allowed, in MB. A payload is the data portion of a * record (without metadata).

*/ inline void SetMaxPayloadInMB(int value) { m_maxPayloadInMBHasBeenSet = true; m_maxPayloadInMB = value; } /** *

The maximum payload size allowed, in MB. A payload is the data portion of a * record (without metadata).

*/ inline TransformJobDefinition& WithMaxPayloadInMB(int value) { SetMaxPayloadInMB(value); return *this;} /** *

A string that determines the number of records included in a single * mini-batch.

SingleRecord means only one record is used per * mini-batch. MultiRecord means a mini-batch is set to contain as * many records that can fit within the MaxPayloadInMB limit.

*/ inline const BatchStrategy& GetBatchStrategy() const{ return m_batchStrategy; } /** *

A string that determines the number of records included in a single * mini-batch.

SingleRecord means only one record is used per * mini-batch. MultiRecord means a mini-batch is set to contain as * many records that can fit within the MaxPayloadInMB limit.

*/ inline bool BatchStrategyHasBeenSet() const { return m_batchStrategyHasBeenSet; } /** *

A string that determines the number of records included in a single * mini-batch.

SingleRecord means only one record is used per * mini-batch. MultiRecord means a mini-batch is set to contain as * many records that can fit within the MaxPayloadInMB limit.

*/ inline void SetBatchStrategy(const BatchStrategy& value) { m_batchStrategyHasBeenSet = true; m_batchStrategy = value; } /** *

A string that determines the number of records included in a single * mini-batch.

SingleRecord means only one record is used per * mini-batch. MultiRecord means a mini-batch is set to contain as * many records that can fit within the MaxPayloadInMB limit.

*/ inline void SetBatchStrategy(BatchStrategy&& value) { m_batchStrategyHasBeenSet = true; m_batchStrategy = std::move(value); } /** *

A string that determines the number of records included in a single * mini-batch.

SingleRecord means only one record is used per * mini-batch. MultiRecord means a mini-batch is set to contain as * many records that can fit within the MaxPayloadInMB limit.

*/ inline TransformJobDefinition& WithBatchStrategy(const BatchStrategy& value) { SetBatchStrategy(value); return *this;} /** *

A string that determines the number of records included in a single * mini-batch.

SingleRecord means only one record is used per * mini-batch. MultiRecord means a mini-batch is set to contain as * many records that can fit within the MaxPayloadInMB limit.

*/ inline TransformJobDefinition& WithBatchStrategy(BatchStrategy&& value) { SetBatchStrategy(std::move(value)); return *this;} /** *

The environment variables to set in the Docker container. We support up to 16 * key and values entries in the map.

*/ inline const Aws::Map& GetEnvironment() const{ return m_environment; } /** *

The environment variables to set in the Docker container. We support up to 16 * key and values entries in the map.

*/ inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; } /** *

The environment variables to set in the Docker container. We support up to 16 * key and values entries in the map.

*/ inline void SetEnvironment(const Aws::Map& value) { m_environmentHasBeenSet = true; m_environment = value; } /** *

The environment variables to set in the Docker container. We support up to 16 * key and values entries in the map.

*/ inline void SetEnvironment(Aws::Map&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); } /** *

The environment variables to set in the Docker container. We support up to 16 * key and values entries in the map.

*/ inline TransformJobDefinition& WithEnvironment(const Aws::Map& value) { SetEnvironment(value); return *this;} /** *

The environment variables to set in the Docker container. We support up to 16 * key and values entries in the map.

*/ inline TransformJobDefinition& WithEnvironment(Aws::Map&& value) { SetEnvironment(std::move(value)); return *this;} /** *

The environment variables to set in the Docker container. We support up to 16 * key and values entries in the map.

*/ inline TransformJobDefinition& AddEnvironment(const Aws::String& key, const Aws::String& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, value); return *this; } /** *

The environment variables to set in the Docker container. We support up to 16 * key and values entries in the map.

*/ inline TransformJobDefinition& AddEnvironment(Aws::String&& key, const Aws::String& value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), value); return *this; } /** *

The environment variables to set in the Docker container. We support up to 16 * key and values entries in the map.

*/ inline TransformJobDefinition& AddEnvironment(const Aws::String& key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, std::move(value)); return *this; } /** *

The environment variables to set in the Docker container. We support up to 16 * key and values entries in the map.

*/ inline TransformJobDefinition& AddEnvironment(Aws::String&& key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), std::move(value)); return *this; } /** *

The environment variables to set in the Docker container. We support up to 16 * key and values entries in the map.

*/ inline TransformJobDefinition& AddEnvironment(const char* key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, std::move(value)); return *this; } /** *

The environment variables to set in the Docker container. We support up to 16 * key and values entries in the map.

*/ inline TransformJobDefinition& AddEnvironment(Aws::String&& key, const char* value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), value); return *this; } /** *

The environment variables to set in the Docker container. We support up to 16 * key and values entries in the map.

*/ inline TransformJobDefinition& AddEnvironment(const char* key, const char* value) { m_environmentHasBeenSet = true; m_environment.emplace(key, value); return *this; } /** *

A description of the input source and the way the transform job consumes * it.

*/ inline const TransformInput& GetTransformInput() const{ return m_transformInput; } /** *

A description of the input source and the way the transform job consumes * it.

*/ inline bool TransformInputHasBeenSet() const { return m_transformInputHasBeenSet; } /** *

A description of the input source and the way the transform job consumes * it.

*/ inline void SetTransformInput(const TransformInput& value) { m_transformInputHasBeenSet = true; m_transformInput = value; } /** *

A description of the input source and the way the transform job consumes * it.

*/ inline void SetTransformInput(TransformInput&& value) { m_transformInputHasBeenSet = true; m_transformInput = std::move(value); } /** *

A description of the input source and the way the transform job consumes * it.

*/ inline TransformJobDefinition& WithTransformInput(const TransformInput& value) { SetTransformInput(value); return *this;} /** *

A description of the input source and the way the transform job consumes * it.

*/ inline TransformJobDefinition& WithTransformInput(TransformInput&& value) { SetTransformInput(std::move(value)); return *this;} /** *

Identifies the Amazon S3 location where you want Amazon SageMaker to save the * results from the transform job.

*/ inline const TransformOutput& GetTransformOutput() const{ return m_transformOutput; } /** *

Identifies the Amazon S3 location where you want Amazon SageMaker to save the * results from the transform job.

*/ inline bool TransformOutputHasBeenSet() const { return m_transformOutputHasBeenSet; } /** *

Identifies the Amazon S3 location where you want Amazon SageMaker to save the * results from the transform job.

*/ inline void SetTransformOutput(const TransformOutput& value) { m_transformOutputHasBeenSet = true; m_transformOutput = value; } /** *

Identifies the Amazon S3 location where you want Amazon SageMaker to save the * results from the transform job.

*/ inline void SetTransformOutput(TransformOutput&& value) { m_transformOutputHasBeenSet = true; m_transformOutput = std::move(value); } /** *

Identifies the Amazon S3 location where you want Amazon SageMaker to save the * results from the transform job.

*/ inline TransformJobDefinition& WithTransformOutput(const TransformOutput& value) { SetTransformOutput(value); return *this;} /** *

Identifies the Amazon S3 location where you want Amazon SageMaker to save the * results from the transform job.

*/ inline TransformJobDefinition& WithTransformOutput(TransformOutput&& value) { SetTransformOutput(std::move(value)); return *this;} /** *

Identifies the ML compute instances for the transform job.

*/ inline const TransformResources& GetTransformResources() const{ return m_transformResources; } /** *

Identifies the ML compute instances for the transform job.

*/ inline bool TransformResourcesHasBeenSet() const { return m_transformResourcesHasBeenSet; } /** *

Identifies the ML compute instances for the transform job.

*/ inline void SetTransformResources(const TransformResources& value) { m_transformResourcesHasBeenSet = true; m_transformResources = value; } /** *

Identifies the ML compute instances for the transform job.

*/ inline void SetTransformResources(TransformResources&& value) { m_transformResourcesHasBeenSet = true; m_transformResources = std::move(value); } /** *

Identifies the ML compute instances for the transform job.

*/ inline TransformJobDefinition& WithTransformResources(const TransformResources& value) { SetTransformResources(value); return *this;} /** *

Identifies the ML compute instances for the transform job.

*/ inline TransformJobDefinition& WithTransformResources(TransformResources&& value) { SetTransformResources(std::move(value)); return *this;} private: int m_maxConcurrentTransforms; bool m_maxConcurrentTransformsHasBeenSet = false; int m_maxPayloadInMB; bool m_maxPayloadInMBHasBeenSet = false; BatchStrategy m_batchStrategy; bool m_batchStrategyHasBeenSet = false; Aws::Map m_environment; bool m_environmentHasBeenSet = false; TransformInput m_transformInput; bool m_transformInputHasBeenSet = false; TransformOutput m_transformOutput; bool m_transformOutputHasBeenSet = false; TransformResources m_transformResources; bool m_transformResourcesHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws