/** * 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 #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace SageMaker { namespace Model { /** */ class AWS_SAGEMAKER_API CreateTrainingJobRequest : public SageMakerRequest { public: CreateTrainingJobRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateTrainingJob"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the training job. The name must be unique within an AWS Region in * an AWS account.

*/ inline const Aws::String& GetTrainingJobName() const{ return m_trainingJobName; } /** *

The name of the training job. The name must be unique within an AWS Region in * an AWS account.

*/ inline bool TrainingJobNameHasBeenSet() const { return m_trainingJobNameHasBeenSet; } /** *

The name of the training job. The name must be unique within an AWS Region in * an AWS account.

*/ inline void SetTrainingJobName(const Aws::String& value) { m_trainingJobNameHasBeenSet = true; m_trainingJobName = value; } /** *

The name of the training job. The name must be unique within an AWS Region in * an AWS account.

*/ inline void SetTrainingJobName(Aws::String&& value) { m_trainingJobNameHasBeenSet = true; m_trainingJobName = std::move(value); } /** *

The name of the training job. The name must be unique within an AWS Region in * an AWS account.

*/ inline void SetTrainingJobName(const char* value) { m_trainingJobNameHasBeenSet = true; m_trainingJobName.assign(value); } /** *

The name of the training job. The name must be unique within an AWS Region in * an AWS account.

*/ inline CreateTrainingJobRequest& WithTrainingJobName(const Aws::String& value) { SetTrainingJobName(value); return *this;} /** *

The name of the training job. The name must be unique within an AWS Region in * an AWS account.

*/ inline CreateTrainingJobRequest& WithTrainingJobName(Aws::String&& value) { SetTrainingJobName(std::move(value)); return *this;} /** *

The name of the training job. The name must be unique within an AWS Region in * an AWS account.

*/ inline CreateTrainingJobRequest& WithTrainingJobName(const char* value) { SetTrainingJobName(value); return *this;} /** *

Algorithm-specific parameters that influence the quality of the model. You * set hyperparameters before you start the learning process. For a list of * hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms. *

You can specify a maximum of 100 hyperparameters. Each hyperparameter is * a key-value pair. Each key and value is limited to 256 characters, as specified * by the Length Constraint.

*/ inline const Aws::Map& GetHyperParameters() const{ return m_hyperParameters; } /** *

Algorithm-specific parameters that influence the quality of the model. You * set hyperparameters before you start the learning process. For a list of * hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms. *

You can specify a maximum of 100 hyperparameters. Each hyperparameter is * a key-value pair. Each key and value is limited to 256 characters, as specified * by the Length Constraint.

*/ inline bool HyperParametersHasBeenSet() const { return m_hyperParametersHasBeenSet; } /** *

Algorithm-specific parameters that influence the quality of the model. You * set hyperparameters before you start the learning process. For a list of * hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms. *

You can specify a maximum of 100 hyperparameters. Each hyperparameter is * a key-value pair. Each key and value is limited to 256 characters, as specified * by the Length Constraint.

*/ inline void SetHyperParameters(const Aws::Map& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters = value; } /** *

Algorithm-specific parameters that influence the quality of the model. You * set hyperparameters before you start the learning process. For a list of * hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms. *

You can specify a maximum of 100 hyperparameters. Each hyperparameter is * a key-value pair. Each key and value is limited to 256 characters, as specified * by the Length Constraint.

*/ inline void SetHyperParameters(Aws::Map&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters = std::move(value); } /** *

Algorithm-specific parameters that influence the quality of the model. You * set hyperparameters before you start the learning process. For a list of * hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms. *

You can specify a maximum of 100 hyperparameters. Each hyperparameter is * a key-value pair. Each key and value is limited to 256 characters, as specified * by the Length Constraint.

*/ inline CreateTrainingJobRequest& WithHyperParameters(const Aws::Map& value) { SetHyperParameters(value); return *this;} /** *

Algorithm-specific parameters that influence the quality of the model. You * set hyperparameters before you start the learning process. For a list of * hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms. *

You can specify a maximum of 100 hyperparameters. Each hyperparameter is * a key-value pair. Each key and value is limited to 256 characters, as specified * by the Length Constraint.

*/ inline CreateTrainingJobRequest& WithHyperParameters(Aws::Map&& value) { SetHyperParameters(std::move(value)); return *this;} /** *

Algorithm-specific parameters that influence the quality of the model. You * set hyperparameters before you start the learning process. For a list of * hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms. *

You can specify a maximum of 100 hyperparameters. Each hyperparameter is * a key-value pair. Each key and value is limited to 256 characters, as specified * by the Length Constraint.

*/ inline CreateTrainingJobRequest& AddHyperParameters(const Aws::String& key, const Aws::String& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, value); return *this; } /** *

Algorithm-specific parameters that influence the quality of the model. You * set hyperparameters before you start the learning process. For a list of * hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms. *

You can specify a maximum of 100 hyperparameters. Each hyperparameter is * a key-value pair. Each key and value is limited to 256 characters, as specified * by the Length Constraint.

*/ inline CreateTrainingJobRequest& AddHyperParameters(Aws::String&& key, const Aws::String& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::move(key), value); return *this; } /** *

Algorithm-specific parameters that influence the quality of the model. You * set hyperparameters before you start the learning process. For a list of * hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms. *

You can specify a maximum of 100 hyperparameters. Each hyperparameter is * a key-value pair. Each key and value is limited to 256 characters, as specified * by the Length Constraint.

*/ inline CreateTrainingJobRequest& AddHyperParameters(const Aws::String& key, Aws::String&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, std::move(value)); return *this; } /** *

Algorithm-specific parameters that influence the quality of the model. You * set hyperparameters before you start the learning process. For a list of * hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms. *

You can specify a maximum of 100 hyperparameters. Each hyperparameter is * a key-value pair. Each key and value is limited to 256 characters, as specified * by the Length Constraint.

*/ inline CreateTrainingJobRequest& AddHyperParameters(Aws::String&& key, Aws::String&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::move(key), std::move(value)); return *this; } /** *

Algorithm-specific parameters that influence the quality of the model. You * set hyperparameters before you start the learning process. For a list of * hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms. *

You can specify a maximum of 100 hyperparameters. Each hyperparameter is * a key-value pair. Each key and value is limited to 256 characters, as specified * by the Length Constraint.

*/ inline CreateTrainingJobRequest& AddHyperParameters(const char* key, Aws::String&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, std::move(value)); return *this; } /** *

Algorithm-specific parameters that influence the quality of the model. You * set hyperparameters before you start the learning process. For a list of * hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms. *

You can specify a maximum of 100 hyperparameters. Each hyperparameter is * a key-value pair. Each key and value is limited to 256 characters, as specified * by the Length Constraint.

*/ inline CreateTrainingJobRequest& AddHyperParameters(Aws::String&& key, const char* value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::move(key), value); return *this; } /** *

Algorithm-specific parameters that influence the quality of the model. You * set hyperparameters before you start the learning process. For a list of * hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms. *

You can specify a maximum of 100 hyperparameters. Each hyperparameter is * a key-value pair. Each key and value is limited to 256 characters, as specified * by the Length Constraint.

*/ inline CreateTrainingJobRequest& AddHyperParameters(const char* key, const char* value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, value); return *this; } /** *

The registry path of the Docker image that contains the training algorithm * and algorithm-specific metadata, including the input mode. For more information * about algorithms provided by Amazon SageMaker, see Algorithms. * For information about providing your own algorithms, see Using * Your Own Algorithms with Amazon SageMaker.

*/ inline const AlgorithmSpecification& GetAlgorithmSpecification() const{ return m_algorithmSpecification; } /** *

The registry path of the Docker image that contains the training algorithm * and algorithm-specific metadata, including the input mode. For more information * about algorithms provided by Amazon SageMaker, see Algorithms. * For information about providing your own algorithms, see Using * Your Own Algorithms with Amazon SageMaker.

*/ inline bool AlgorithmSpecificationHasBeenSet() const { return m_algorithmSpecificationHasBeenSet; } /** *

The registry path of the Docker image that contains the training algorithm * and algorithm-specific metadata, including the input mode. For more information * about algorithms provided by Amazon SageMaker, see Algorithms. * For information about providing your own algorithms, see Using * Your Own Algorithms with Amazon SageMaker.

*/ inline void SetAlgorithmSpecification(const AlgorithmSpecification& value) { m_algorithmSpecificationHasBeenSet = true; m_algorithmSpecification = value; } /** *

The registry path of the Docker image that contains the training algorithm * and algorithm-specific metadata, including the input mode. For more information * about algorithms provided by Amazon SageMaker, see Algorithms. * For information about providing your own algorithms, see Using * Your Own Algorithms with Amazon SageMaker.

*/ inline void SetAlgorithmSpecification(AlgorithmSpecification&& value) { m_algorithmSpecificationHasBeenSet = true; m_algorithmSpecification = std::move(value); } /** *

The registry path of the Docker image that contains the training algorithm * and algorithm-specific metadata, including the input mode. For more information * about algorithms provided by Amazon SageMaker, see Algorithms. * For information about providing your own algorithms, see Using * Your Own Algorithms with Amazon SageMaker.

*/ inline CreateTrainingJobRequest& WithAlgorithmSpecification(const AlgorithmSpecification& value) { SetAlgorithmSpecification(value); return *this;} /** *

The registry path of the Docker image that contains the training algorithm * and algorithm-specific metadata, including the input mode. For more information * about algorithms provided by Amazon SageMaker, see Algorithms. * For information about providing your own algorithms, see Using * Your Own Algorithms with Amazon SageMaker.

*/ inline CreateTrainingJobRequest& WithAlgorithmSpecification(AlgorithmSpecification&& value) { SetAlgorithmSpecification(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can * assume to perform tasks on your behalf.

During model training, Amazon * SageMaker needs your permission to read input data from an S3 bucket, download a * Docker image that contains training code, write model artifacts to an S3 bucket, * write logs to Amazon CloudWatch Logs, and publish metrics to Amazon CloudWatch. * You grant permissions for all of these tasks to an IAM role. For more * information, see Amazon * SageMaker Roles.

To be able to pass this role to Amazon * SageMaker, the caller of this API must have the iam:PassRole * permission.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can * assume to perform tasks on your behalf.

During model training, Amazon * SageMaker needs your permission to read input data from an S3 bucket, download a * Docker image that contains training code, write model artifacts to an S3 bucket, * write logs to Amazon CloudWatch Logs, and publish metrics to Amazon CloudWatch. * You grant permissions for all of these tasks to an IAM role. For more * information, see Amazon * SageMaker Roles.

To be able to pass this role to Amazon * SageMaker, the caller of this API must have the iam:PassRole * permission.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can * assume to perform tasks on your behalf.

During model training, Amazon * SageMaker needs your permission to read input data from an S3 bucket, download a * Docker image that contains training code, write model artifacts to an S3 bucket, * write logs to Amazon CloudWatch Logs, and publish metrics to Amazon CloudWatch. * You grant permissions for all of these tasks to an IAM role. For more * information, see Amazon * SageMaker Roles.

To be able to pass this role to Amazon * SageMaker, the caller of this API must have the iam:PassRole * permission.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can * assume to perform tasks on your behalf.

During model training, Amazon * SageMaker needs your permission to read input data from an S3 bucket, download a * Docker image that contains training code, write model artifacts to an S3 bucket, * write logs to Amazon CloudWatch Logs, and publish metrics to Amazon CloudWatch. * You grant permissions for all of these tasks to an IAM role. For more * information, see Amazon * SageMaker Roles.

To be able to pass this role to Amazon * SageMaker, the caller of this API must have the iam:PassRole * permission.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can * assume to perform tasks on your behalf.

During model training, Amazon * SageMaker needs your permission to read input data from an S3 bucket, download a * Docker image that contains training code, write model artifacts to an S3 bucket, * write logs to Amazon CloudWatch Logs, and publish metrics to Amazon CloudWatch. * You grant permissions for all of these tasks to an IAM role. For more * information, see Amazon * SageMaker Roles.

To be able to pass this role to Amazon * SageMaker, the caller of this API must have the iam:PassRole * permission.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can * assume to perform tasks on your behalf.

During model training, Amazon * SageMaker needs your permission to read input data from an S3 bucket, download a * Docker image that contains training code, write model artifacts to an S3 bucket, * write logs to Amazon CloudWatch Logs, and publish metrics to Amazon CloudWatch. * You grant permissions for all of these tasks to an IAM role. For more * information, see Amazon * SageMaker Roles.

To be able to pass this role to Amazon * SageMaker, the caller of this API must have the iam:PassRole * permission.

*/ inline CreateTrainingJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can * assume to perform tasks on your behalf.

During model training, Amazon * SageMaker needs your permission to read input data from an S3 bucket, download a * Docker image that contains training code, write model artifacts to an S3 bucket, * write logs to Amazon CloudWatch Logs, and publish metrics to Amazon CloudWatch. * You grant permissions for all of these tasks to an IAM role. For more * information, see Amazon * SageMaker Roles.

To be able to pass this role to Amazon * SageMaker, the caller of this API must have the iam:PassRole * permission.

*/ inline CreateTrainingJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can * assume to perform tasks on your behalf.

During model training, Amazon * SageMaker needs your permission to read input data from an S3 bucket, download a * Docker image that contains training code, write model artifacts to an S3 bucket, * write logs to Amazon CloudWatch Logs, and publish metrics to Amazon CloudWatch. * You grant permissions for all of these tasks to an IAM role. For more * information, see Amazon * SageMaker Roles.

To be able to pass this role to Amazon * SageMaker, the caller of this API must have the iam:PassRole * permission.

*/ inline CreateTrainingJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

An array of Channel objects. Each channel is a named input * source. InputDataConfig describes the input data and its location. *

Algorithms can accept input data from one or more channels. For example, * an algorithm might have two channels of input data, training_data * and validation_data. The configuration for each channel provides * the S3, EFS, or FSx location where the input data is stored. It also provides * information about the stored data: the MIME type, compression method, and * whether the data is wrapped in RecordIO format.

Depending on the input * mode that the algorithm supports, Amazon SageMaker either copies input data * files from an S3 bucket to a local directory in the Docker container, or makes * it available as input streams. For example, if you specify an EFS location, * input data files will be made available as input streams. They do not need to be * downloaded.

*/ inline const Aws::Vector& GetInputDataConfig() const{ return m_inputDataConfig; } /** *

An array of Channel objects. Each channel is a named input * source. InputDataConfig describes the input data and its location. *

Algorithms can accept input data from one or more channels. For example, * an algorithm might have two channels of input data, training_data * and validation_data. The configuration for each channel provides * the S3, EFS, or FSx location where the input data is stored. It also provides * information about the stored data: the MIME type, compression method, and * whether the data is wrapped in RecordIO format.

Depending on the input * mode that the algorithm supports, Amazon SageMaker either copies input data * files from an S3 bucket to a local directory in the Docker container, or makes * it available as input streams. For example, if you specify an EFS location, * input data files will be made available as input streams. They do not need to be * downloaded.

*/ inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; } /** *

An array of Channel objects. Each channel is a named input * source. InputDataConfig describes the input data and its location. *

Algorithms can accept input data from one or more channels. For example, * an algorithm might have two channels of input data, training_data * and validation_data. The configuration for each channel provides * the S3, EFS, or FSx location where the input data is stored. It also provides * information about the stored data: the MIME type, compression method, and * whether the data is wrapped in RecordIO format.

Depending on the input * mode that the algorithm supports, Amazon SageMaker either copies input data * files from an S3 bucket to a local directory in the Docker container, or makes * it available as input streams. For example, if you specify an EFS location, * input data files will be made available as input streams. They do not need to be * downloaded.

*/ inline void SetInputDataConfig(const Aws::Vector& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; } /** *

An array of Channel objects. Each channel is a named input * source. InputDataConfig describes the input data and its location. *

Algorithms can accept input data from one or more channels. For example, * an algorithm might have two channels of input data, training_data * and validation_data. The configuration for each channel provides * the S3, EFS, or FSx location where the input data is stored. It also provides * information about the stored data: the MIME type, compression method, and * whether the data is wrapped in RecordIO format.

Depending on the input * mode that the algorithm supports, Amazon SageMaker either copies input data * files from an S3 bucket to a local directory in the Docker container, or makes * it available as input streams. For example, if you specify an EFS location, * input data files will be made available as input streams. They do not need to be * downloaded.

*/ inline void SetInputDataConfig(Aws::Vector&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); } /** *

An array of Channel objects. Each channel is a named input * source. InputDataConfig describes the input data and its location. *

Algorithms can accept input data from one or more channels. For example, * an algorithm might have two channels of input data, training_data * and validation_data. The configuration for each channel provides * the S3, EFS, or FSx location where the input data is stored. It also provides * information about the stored data: the MIME type, compression method, and * whether the data is wrapped in RecordIO format.

Depending on the input * mode that the algorithm supports, Amazon SageMaker either copies input data * files from an S3 bucket to a local directory in the Docker container, or makes * it available as input streams. For example, if you specify an EFS location, * input data files will be made available as input streams. They do not need to be * downloaded.

*/ inline CreateTrainingJobRequest& WithInputDataConfig(const Aws::Vector& value) { SetInputDataConfig(value); return *this;} /** *

An array of Channel objects. Each channel is a named input * source. InputDataConfig describes the input data and its location. *

Algorithms can accept input data from one or more channels. For example, * an algorithm might have two channels of input data, training_data * and validation_data. The configuration for each channel provides * the S3, EFS, or FSx location where the input data is stored. It also provides * information about the stored data: the MIME type, compression method, and * whether the data is wrapped in RecordIO format.

Depending on the input * mode that the algorithm supports, Amazon SageMaker either copies input data * files from an S3 bucket to a local directory in the Docker container, or makes * it available as input streams. For example, if you specify an EFS location, * input data files will be made available as input streams. They do not need to be * downloaded.

*/ inline CreateTrainingJobRequest& WithInputDataConfig(Aws::Vector&& value) { SetInputDataConfig(std::move(value)); return *this;} /** *

An array of Channel objects. Each channel is a named input * source. InputDataConfig describes the input data and its location. *

Algorithms can accept input data from one or more channels. For example, * an algorithm might have two channels of input data, training_data * and validation_data. The configuration for each channel provides * the S3, EFS, or FSx location where the input data is stored. It also provides * information about the stored data: the MIME type, compression method, and * whether the data is wrapped in RecordIO format.

Depending on the input * mode that the algorithm supports, Amazon SageMaker either copies input data * files from an S3 bucket to a local directory in the Docker container, or makes * it available as input streams. For example, if you specify an EFS location, * input data files will be made available as input streams. They do not need to be * downloaded.

*/ inline CreateTrainingJobRequest& AddInputDataConfig(const Channel& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig.push_back(value); return *this; } /** *

An array of Channel objects. Each channel is a named input * source. InputDataConfig describes the input data and its location. *

Algorithms can accept input data from one or more channels. For example, * an algorithm might have two channels of input data, training_data * and validation_data. The configuration for each channel provides * the S3, EFS, or FSx location where the input data is stored. It also provides * information about the stored data: the MIME type, compression method, and * whether the data is wrapped in RecordIO format.

Depending on the input * mode that the algorithm supports, Amazon SageMaker either copies input data * files from an S3 bucket to a local directory in the Docker container, or makes * it available as input streams. For example, if you specify an EFS location, * input data files will be made available as input streams. They do not need to be * downloaded.

*/ inline CreateTrainingJobRequest& AddInputDataConfig(Channel&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig.push_back(std::move(value)); return *this; } /** *

Specifies the path to the S3 location where you want to store model * artifacts. Amazon SageMaker creates subfolders for the artifacts.

*/ inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; } /** *

Specifies the path to the S3 location where you want to store model * artifacts. Amazon SageMaker creates subfolders for the artifacts.

*/ inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; } /** *

Specifies the path to the S3 location where you want to store model * artifacts. Amazon SageMaker creates subfolders for the artifacts.

*/ inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; } /** *

Specifies the path to the S3 location where you want to store model * artifacts. Amazon SageMaker creates subfolders for the artifacts.

*/ inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); } /** *

Specifies the path to the S3 location where you want to store model * artifacts. Amazon SageMaker creates subfolders for the artifacts.

*/ inline CreateTrainingJobRequest& WithOutputDataConfig(const OutputDataConfig& value) { SetOutputDataConfig(value); return *this;} /** *

Specifies the path to the S3 location where you want to store model * artifacts. Amazon SageMaker creates subfolders for the artifacts.

*/ inline CreateTrainingJobRequest& WithOutputDataConfig(OutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); return *this;} /** *

The resources, including the ML compute instances and ML storage volumes, to * use for model training.

ML storage volumes store model artifacts and * incremental states. Training algorithms might also use ML storage volumes for * scratch space. If you want Amazon SageMaker to use the ML storage volume to * store the training data, choose File as the * TrainingInputMode in the algorithm specification. For distributed * training algorithms, specify an instance count greater than 1.

*/ inline const ResourceConfig& GetResourceConfig() const{ return m_resourceConfig; } /** *

The resources, including the ML compute instances and ML storage volumes, to * use for model training.

ML storage volumes store model artifacts and * incremental states. Training algorithms might also use ML storage volumes for * scratch space. If you want Amazon SageMaker to use the ML storage volume to * store the training data, choose File as the * TrainingInputMode in the algorithm specification. For distributed * training algorithms, specify an instance count greater than 1.

*/ inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; } /** *

The resources, including the ML compute instances and ML storage volumes, to * use for model training.

ML storage volumes store model artifacts and * incremental states. Training algorithms might also use ML storage volumes for * scratch space. If you want Amazon SageMaker to use the ML storage volume to * store the training data, choose File as the * TrainingInputMode in the algorithm specification. For distributed * training algorithms, specify an instance count greater than 1.

*/ inline void SetResourceConfig(const ResourceConfig& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = value; } /** *

The resources, including the ML compute instances and ML storage volumes, to * use for model training.

ML storage volumes store model artifacts and * incremental states. Training algorithms might also use ML storage volumes for * scratch space. If you want Amazon SageMaker to use the ML storage volume to * store the training data, choose File as the * TrainingInputMode in the algorithm specification. For distributed * training algorithms, specify an instance count greater than 1.

*/ inline void SetResourceConfig(ResourceConfig&& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = std::move(value); } /** *

The resources, including the ML compute instances and ML storage volumes, to * use for model training.

ML storage volumes store model artifacts and * incremental states. Training algorithms might also use ML storage volumes for * scratch space. If you want Amazon SageMaker to use the ML storage volume to * store the training data, choose File as the * TrainingInputMode in the algorithm specification. For distributed * training algorithms, specify an instance count greater than 1.

*/ inline CreateTrainingJobRequest& WithResourceConfig(const ResourceConfig& value) { SetResourceConfig(value); return *this;} /** *

The resources, including the ML compute instances and ML storage volumes, to * use for model training.

ML storage volumes store model artifacts and * incremental states. Training algorithms might also use ML storage volumes for * scratch space. If you want Amazon SageMaker to use the ML storage volume to * store the training data, choose File as the * TrainingInputMode in the algorithm specification. For distributed * training algorithms, specify an instance count greater than 1.

*/ inline CreateTrainingJobRequest& WithResourceConfig(ResourceConfig&& value) { SetResourceConfig(std::move(value)); return *this;} /** *

A VpcConfig object that specifies the VPC that you want your training * job to connect to. Control access to and from your training container by * configuring the VPC. For more information, see Protect * Training Jobs by Using an Amazon Virtual Private Cloud.

*/ inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; } /** *

A VpcConfig object that specifies the VPC that you want your training * job to connect to. Control access to and from your training container by * configuring the VPC. For more information, see Protect * Training Jobs by Using an Amazon Virtual Private Cloud.

*/ inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; } /** *

A VpcConfig object that specifies the VPC that you want your training * job to connect to. Control access to and from your training container by * configuring the VPC. For more information, see Protect * Training Jobs by Using an Amazon Virtual Private Cloud.

*/ inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; } /** *

A VpcConfig object that specifies the VPC that you want your training * job to connect to. Control access to and from your training container by * configuring the VPC. For more information, see Protect * Training Jobs by Using an Amazon Virtual Private Cloud.

*/ inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); } /** *

A VpcConfig object that specifies the VPC that you want your training * job to connect to. Control access to and from your training container by * configuring the VPC. For more information, see Protect * Training Jobs by Using an Amazon Virtual Private Cloud.

*/ inline CreateTrainingJobRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;} /** *

A VpcConfig object that specifies the VPC that you want your training * job to connect to. Control access to and from your training container by * configuring the VPC. For more information, see Protect * Training Jobs by Using an Amazon Virtual Private Cloud.

*/ inline CreateTrainingJobRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;} /** *

Specifies a limit to how long a model training job can run. When the job * reaches the time limit, Amazon SageMaker ends the training job. Use this API to * cap model training costs.

To stop a job, Amazon SageMaker sends the * algorithm the SIGTERM signal, which delays job termination for 120 * seconds. Algorithms can use this 120-second window to save the model artifacts, * so the results of training are not lost.

*/ inline const StoppingCondition& GetStoppingCondition() const{ return m_stoppingCondition; } /** *

Specifies a limit to how long a model training job can run. When the job * reaches the time limit, Amazon SageMaker ends the training job. Use this API to * cap model training costs.

To stop a job, Amazon SageMaker sends the * algorithm the SIGTERM signal, which delays job termination for 120 * seconds. Algorithms can use this 120-second window to save the model artifacts, * so the results of training are not lost.

*/ inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; } /** *

Specifies a limit to how long a model training job can run. When the job * reaches the time limit, Amazon SageMaker ends the training job. Use this API to * cap model training costs.

To stop a job, Amazon SageMaker sends the * algorithm the SIGTERM signal, which delays job termination for 120 * seconds. Algorithms can use this 120-second window to save the model artifacts, * so the results of training are not lost.

*/ inline void SetStoppingCondition(const StoppingCondition& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = value; } /** *

Specifies a limit to how long a model training job can run. When the job * reaches the time limit, Amazon SageMaker ends the training job. Use this API to * cap model training costs.

To stop a job, Amazon SageMaker sends the * algorithm the SIGTERM signal, which delays job termination for 120 * seconds. Algorithms can use this 120-second window to save the model artifacts, * so the results of training are not lost.

*/ inline void SetStoppingCondition(StoppingCondition&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::move(value); } /** *

Specifies a limit to how long a model training job can run. When the job * reaches the time limit, Amazon SageMaker ends the training job. Use this API to * cap model training costs.

To stop a job, Amazon SageMaker sends the * algorithm the SIGTERM signal, which delays job termination for 120 * seconds. Algorithms can use this 120-second window to save the model artifacts, * so the results of training are not lost.

*/ inline CreateTrainingJobRequest& WithStoppingCondition(const StoppingCondition& value) { SetStoppingCondition(value); return *this;} /** *

Specifies a limit to how long a model training job can run. When the job * reaches the time limit, Amazon SageMaker ends the training job. Use this API to * cap model training costs.

To stop a job, Amazon SageMaker sends the * algorithm the SIGTERM signal, which delays job termination for 120 * seconds. Algorithms can use this 120-second window to save the model artifacts, * so the results of training are not lost.

*/ inline CreateTrainingJobRequest& WithStoppingCondition(StoppingCondition&& value) { SetStoppingCondition(std::move(value)); return *this;} /** *

An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the AWS Billing and Cost Management User * Guide.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the AWS Billing and Cost Management User * Guide.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the AWS Billing and Cost Management User * Guide.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the AWS Billing and Cost Management User * Guide.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the AWS Billing and Cost Management User * Guide.

*/ inline CreateTrainingJobRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the AWS Billing and Cost Management User * Guide.

*/ inline CreateTrainingJobRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the AWS Billing and Cost Management User * Guide.

*/ inline CreateTrainingJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the AWS Billing and Cost Management User * Guide.

*/ inline CreateTrainingJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Isolates the training container. No inbound or outbound network calls can be * made, except for calls between peers within a training cluster for distributed * training. If you enable network isolation for training jobs that are configured * to use a VPC, Amazon SageMaker downloads and uploads customer data and model * artifacts through the specified VPC, but the training container does not have * network access.

*/ inline bool GetEnableNetworkIsolation() const{ return m_enableNetworkIsolation; } /** *

Isolates the training container. No inbound or outbound network calls can be * made, except for calls between peers within a training cluster for distributed * training. If you enable network isolation for training jobs that are configured * to use a VPC, Amazon SageMaker downloads and uploads customer data and model * artifacts through the specified VPC, but the training container does not have * network access.

*/ inline bool EnableNetworkIsolationHasBeenSet() const { return m_enableNetworkIsolationHasBeenSet; } /** *

Isolates the training container. No inbound or outbound network calls can be * made, except for calls between peers within a training cluster for distributed * training. If you enable network isolation for training jobs that are configured * to use a VPC, Amazon SageMaker downloads and uploads customer data and model * artifacts through the specified VPC, but the training container does not have * network access.

*/ inline void SetEnableNetworkIsolation(bool value) { m_enableNetworkIsolationHasBeenSet = true; m_enableNetworkIsolation = value; } /** *

Isolates the training container. No inbound or outbound network calls can be * made, except for calls between peers within a training cluster for distributed * training. If you enable network isolation for training jobs that are configured * to use a VPC, Amazon SageMaker downloads and uploads customer data and model * artifacts through the specified VPC, but the training container does not have * network access.

*/ inline CreateTrainingJobRequest& WithEnableNetworkIsolation(bool value) { SetEnableNetworkIsolation(value); return *this;} /** *

To encrypt all communications between ML compute instances in distributed * training, choose True. Encryption provides greater security for * distributed training, but training might take longer. How long it takes depends * on the amount of communication between compute instances, especially if you use * a deep learning algorithm in distributed training. For more information, see Protect * Communications Between ML Compute Instances in a Distributed Training * Job.

*/ inline bool GetEnableInterContainerTrafficEncryption() const{ return m_enableInterContainerTrafficEncryption; } /** *

To encrypt all communications between ML compute instances in distributed * training, choose True. Encryption provides greater security for * distributed training, but training might take longer. How long it takes depends * on the amount of communication between compute instances, especially if you use * a deep learning algorithm in distributed training. For more information, see Protect * Communications Between ML Compute Instances in a Distributed Training * Job.

*/ inline bool EnableInterContainerTrafficEncryptionHasBeenSet() const { return m_enableInterContainerTrafficEncryptionHasBeenSet; } /** *

To encrypt all communications between ML compute instances in distributed * training, choose True. Encryption provides greater security for * distributed training, but training might take longer. How long it takes depends * on the amount of communication between compute instances, especially if you use * a deep learning algorithm in distributed training. For more information, see Protect * Communications Between ML Compute Instances in a Distributed Training * Job.

*/ inline void SetEnableInterContainerTrafficEncryption(bool value) { m_enableInterContainerTrafficEncryptionHasBeenSet = true; m_enableInterContainerTrafficEncryption = value; } /** *

To encrypt all communications between ML compute instances in distributed * training, choose True. Encryption provides greater security for * distributed training, but training might take longer. How long it takes depends * on the amount of communication between compute instances, especially if you use * a deep learning algorithm in distributed training. For more information, see Protect * Communications Between ML Compute Instances in a Distributed Training * Job.

*/ inline CreateTrainingJobRequest& WithEnableInterContainerTrafficEncryption(bool value) { SetEnableInterContainerTrafficEncryption(value); return *this;} /** *

To train models using managed spot training, choose True. * Managed spot training provides a fully managed and scalable infrastructure for * training machine learning models. this option is useful when training jobs can * be interrupted and when there is flexibility when the training job is run.

*

The complete and intermediate results of jobs are stored in an Amazon S3 * bucket, and can be used as a starting point to train models incrementally. * Amazon SageMaker provides metrics and logs in CloudWatch. They can be used to * see when managed spot training jobs are running, interrupted, resumed, or * completed.

*/ inline bool GetEnableManagedSpotTraining() const{ return m_enableManagedSpotTraining; } /** *

To train models using managed spot training, choose True. * Managed spot training provides a fully managed and scalable infrastructure for * training machine learning models. this option is useful when training jobs can * be interrupted and when there is flexibility when the training job is run.

*

The complete and intermediate results of jobs are stored in an Amazon S3 * bucket, and can be used as a starting point to train models incrementally. * Amazon SageMaker provides metrics and logs in CloudWatch. They can be used to * see when managed spot training jobs are running, interrupted, resumed, or * completed.

*/ inline bool EnableManagedSpotTrainingHasBeenSet() const { return m_enableManagedSpotTrainingHasBeenSet; } /** *

To train models using managed spot training, choose True. * Managed spot training provides a fully managed and scalable infrastructure for * training machine learning models. this option is useful when training jobs can * be interrupted and when there is flexibility when the training job is run.

*

The complete and intermediate results of jobs are stored in an Amazon S3 * bucket, and can be used as a starting point to train models incrementally. * Amazon SageMaker provides metrics and logs in CloudWatch. They can be used to * see when managed spot training jobs are running, interrupted, resumed, or * completed.

*/ inline void SetEnableManagedSpotTraining(bool value) { m_enableManagedSpotTrainingHasBeenSet = true; m_enableManagedSpotTraining = value; } /** *

To train models using managed spot training, choose True. * Managed spot training provides a fully managed and scalable infrastructure for * training machine learning models. this option is useful when training jobs can * be interrupted and when there is flexibility when the training job is run.

*

The complete and intermediate results of jobs are stored in an Amazon S3 * bucket, and can be used as a starting point to train models incrementally. * Amazon SageMaker provides metrics and logs in CloudWatch. They can be used to * see when managed spot training jobs are running, interrupted, resumed, or * completed.

*/ inline CreateTrainingJobRequest& WithEnableManagedSpotTraining(bool value) { SetEnableManagedSpotTraining(value); return *this;} /** *

Contains information about the output location for managed spot training * checkpoint data.

*/ inline const CheckpointConfig& GetCheckpointConfig() const{ return m_checkpointConfig; } /** *

Contains information about the output location for managed spot training * checkpoint data.

*/ inline bool CheckpointConfigHasBeenSet() const { return m_checkpointConfigHasBeenSet; } /** *

Contains information about the output location for managed spot training * checkpoint data.

*/ inline void SetCheckpointConfig(const CheckpointConfig& value) { m_checkpointConfigHasBeenSet = true; m_checkpointConfig = value; } /** *

Contains information about the output location for managed spot training * checkpoint data.

*/ inline void SetCheckpointConfig(CheckpointConfig&& value) { m_checkpointConfigHasBeenSet = true; m_checkpointConfig = std::move(value); } /** *

Contains information about the output location for managed spot training * checkpoint data.

*/ inline CreateTrainingJobRequest& WithCheckpointConfig(const CheckpointConfig& value) { SetCheckpointConfig(value); return *this;} /** *

Contains information about the output location for managed spot training * checkpoint data.

*/ inline CreateTrainingJobRequest& WithCheckpointConfig(CheckpointConfig&& value) { SetCheckpointConfig(std::move(value)); return *this;} inline const DebugHookConfig& GetDebugHookConfig() const{ return m_debugHookConfig; } inline bool DebugHookConfigHasBeenSet() const { return m_debugHookConfigHasBeenSet; } inline void SetDebugHookConfig(const DebugHookConfig& value) { m_debugHookConfigHasBeenSet = true; m_debugHookConfig = value; } inline void SetDebugHookConfig(DebugHookConfig&& value) { m_debugHookConfigHasBeenSet = true; m_debugHookConfig = std::move(value); } inline CreateTrainingJobRequest& WithDebugHookConfig(const DebugHookConfig& value) { SetDebugHookConfig(value); return *this;} inline CreateTrainingJobRequest& WithDebugHookConfig(DebugHookConfig&& value) { SetDebugHookConfig(std::move(value)); return *this;} /** *

Configuration information for debugging rules.

*/ inline const Aws::Vector& GetDebugRuleConfigurations() const{ return m_debugRuleConfigurations; } /** *

Configuration information for debugging rules.

*/ inline bool DebugRuleConfigurationsHasBeenSet() const { return m_debugRuleConfigurationsHasBeenSet; } /** *

Configuration information for debugging rules.

*/ inline void SetDebugRuleConfigurations(const Aws::Vector& value) { m_debugRuleConfigurationsHasBeenSet = true; m_debugRuleConfigurations = value; } /** *

Configuration information for debugging rules.

*/ inline void SetDebugRuleConfigurations(Aws::Vector&& value) { m_debugRuleConfigurationsHasBeenSet = true; m_debugRuleConfigurations = std::move(value); } /** *

Configuration information for debugging rules.

*/ inline CreateTrainingJobRequest& WithDebugRuleConfigurations(const Aws::Vector& value) { SetDebugRuleConfigurations(value); return *this;} /** *

Configuration information for debugging rules.

*/ inline CreateTrainingJobRequest& WithDebugRuleConfigurations(Aws::Vector&& value) { SetDebugRuleConfigurations(std::move(value)); return *this;} /** *

Configuration information for debugging rules.

*/ inline CreateTrainingJobRequest& AddDebugRuleConfigurations(const DebugRuleConfiguration& value) { m_debugRuleConfigurationsHasBeenSet = true; m_debugRuleConfigurations.push_back(value); return *this; } /** *

Configuration information for debugging rules.

*/ inline CreateTrainingJobRequest& AddDebugRuleConfigurations(DebugRuleConfiguration&& value) { m_debugRuleConfigurationsHasBeenSet = true; m_debugRuleConfigurations.push_back(std::move(value)); return *this; } inline const TensorBoardOutputConfig& GetTensorBoardOutputConfig() const{ return m_tensorBoardOutputConfig; } inline bool TensorBoardOutputConfigHasBeenSet() const { return m_tensorBoardOutputConfigHasBeenSet; } inline void SetTensorBoardOutputConfig(const TensorBoardOutputConfig& value) { m_tensorBoardOutputConfigHasBeenSet = true; m_tensorBoardOutputConfig = value; } inline void SetTensorBoardOutputConfig(TensorBoardOutputConfig&& value) { m_tensorBoardOutputConfigHasBeenSet = true; m_tensorBoardOutputConfig = std::move(value); } inline CreateTrainingJobRequest& WithTensorBoardOutputConfig(const TensorBoardOutputConfig& value) { SetTensorBoardOutputConfig(value); return *this;} inline CreateTrainingJobRequest& WithTensorBoardOutputConfig(TensorBoardOutputConfig&& value) { SetTensorBoardOutputConfig(std::move(value)); return *this;} inline const ExperimentConfig& GetExperimentConfig() const{ return m_experimentConfig; } inline bool ExperimentConfigHasBeenSet() const { return m_experimentConfigHasBeenSet; } inline void SetExperimentConfig(const ExperimentConfig& value) { m_experimentConfigHasBeenSet = true; m_experimentConfig = value; } inline void SetExperimentConfig(ExperimentConfig&& value) { m_experimentConfigHasBeenSet = true; m_experimentConfig = std::move(value); } inline CreateTrainingJobRequest& WithExperimentConfig(const ExperimentConfig& value) { SetExperimentConfig(value); return *this;} inline CreateTrainingJobRequest& WithExperimentConfig(ExperimentConfig&& value) { SetExperimentConfig(std::move(value)); return *this;} private: Aws::String m_trainingJobName; bool m_trainingJobNameHasBeenSet; Aws::Map m_hyperParameters; bool m_hyperParametersHasBeenSet; AlgorithmSpecification m_algorithmSpecification; bool m_algorithmSpecificationHasBeenSet; Aws::String m_roleArn; bool m_roleArnHasBeenSet; Aws::Vector m_inputDataConfig; bool m_inputDataConfigHasBeenSet; OutputDataConfig m_outputDataConfig; bool m_outputDataConfigHasBeenSet; ResourceConfig m_resourceConfig; bool m_resourceConfigHasBeenSet; VpcConfig m_vpcConfig; bool m_vpcConfigHasBeenSet; StoppingCondition m_stoppingCondition; bool m_stoppingConditionHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; bool m_enableNetworkIsolation; bool m_enableNetworkIsolationHasBeenSet; bool m_enableInterContainerTrafficEncryption; bool m_enableInterContainerTrafficEncryptionHasBeenSet; bool m_enableManagedSpotTraining; bool m_enableManagedSpotTrainingHasBeenSet; CheckpointConfig m_checkpointConfig; bool m_checkpointConfigHasBeenSet; DebugHookConfig m_debugHookConfig; bool m_debugHookConfigHasBeenSet; Aws::Vector m_debugRuleConfigurations; bool m_debugRuleConfigurationsHasBeenSet; TensorBoardOutputConfig m_tensorBoardOutputConfig; bool m_tensorBoardOutputConfigHasBeenSet; ExperimentConfig m_experimentConfig; bool m_experimentConfigHasBeenSet; }; } // namespace Model } // namespace SageMaker } // namespace Aws