/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { class DescribeCompilationJobResult { public: AWS_SAGEMAKER_API DescribeCompilationJobResult(); AWS_SAGEMAKER_API DescribeCompilationJobResult(const Aws::AmazonWebServiceResult& result); AWS_SAGEMAKER_API DescribeCompilationJobResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the model compilation job.

*/ inline const Aws::String& GetCompilationJobName() const{ return m_compilationJobName; } /** *

The name of the model compilation job.

*/ inline void SetCompilationJobName(const Aws::String& value) { m_compilationJobName = value; } /** *

The name of the model compilation job.

*/ inline void SetCompilationJobName(Aws::String&& value) { m_compilationJobName = std::move(value); } /** *

The name of the model compilation job.

*/ inline void SetCompilationJobName(const char* value) { m_compilationJobName.assign(value); } /** *

The name of the model compilation job.

*/ inline DescribeCompilationJobResult& WithCompilationJobName(const Aws::String& value) { SetCompilationJobName(value); return *this;} /** *

The name of the model compilation job.

*/ inline DescribeCompilationJobResult& WithCompilationJobName(Aws::String&& value) { SetCompilationJobName(std::move(value)); return *this;} /** *

The name of the model compilation job.

*/ inline DescribeCompilationJobResult& WithCompilationJobName(const char* value) { SetCompilationJobName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the model compilation job.

*/ inline const Aws::String& GetCompilationJobArn() const{ return m_compilationJobArn; } /** *

The Amazon Resource Name (ARN) of the model compilation job.

*/ inline void SetCompilationJobArn(const Aws::String& value) { m_compilationJobArn = value; } /** *

The Amazon Resource Name (ARN) of the model compilation job.

*/ inline void SetCompilationJobArn(Aws::String&& value) { m_compilationJobArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the model compilation job.

*/ inline void SetCompilationJobArn(const char* value) { m_compilationJobArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the model compilation job.

*/ inline DescribeCompilationJobResult& WithCompilationJobArn(const Aws::String& value) { SetCompilationJobArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the model compilation job.

*/ inline DescribeCompilationJobResult& WithCompilationJobArn(Aws::String&& value) { SetCompilationJobArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the model compilation job.

*/ inline DescribeCompilationJobResult& WithCompilationJobArn(const char* value) { SetCompilationJobArn(value); return *this;} /** *

The status of the model compilation job.

*/ inline const CompilationJobStatus& GetCompilationJobStatus() const{ return m_compilationJobStatus; } /** *

The status of the model compilation job.

*/ inline void SetCompilationJobStatus(const CompilationJobStatus& value) { m_compilationJobStatus = value; } /** *

The status of the model compilation job.

*/ inline void SetCompilationJobStatus(CompilationJobStatus&& value) { m_compilationJobStatus = std::move(value); } /** *

The status of the model compilation job.

*/ inline DescribeCompilationJobResult& WithCompilationJobStatus(const CompilationJobStatus& value) { SetCompilationJobStatus(value); return *this;} /** *

The status of the model compilation job.

*/ inline DescribeCompilationJobResult& WithCompilationJobStatus(CompilationJobStatus&& value) { SetCompilationJobStatus(std::move(value)); return *this;} /** *

The time when the model compilation job started the * CompilationJob instances.

You are billed for the time * between this timestamp and the timestamp in the CompilationEndTime * field. In Amazon CloudWatch Logs, the start time might be later than this time. * That's because it takes time to download the compilation job, which depends on * the size of the compilation job container.

*/ inline const Aws::Utils::DateTime& GetCompilationStartTime() const{ return m_compilationStartTime; } /** *

The time when the model compilation job started the * CompilationJob instances.

You are billed for the time * between this timestamp and the timestamp in the CompilationEndTime * field. In Amazon CloudWatch Logs, the start time might be later than this time. * That's because it takes time to download the compilation job, which depends on * the size of the compilation job container.

*/ inline void SetCompilationStartTime(const Aws::Utils::DateTime& value) { m_compilationStartTime = value; } /** *

The time when the model compilation job started the * CompilationJob instances.

You are billed for the time * between this timestamp and the timestamp in the CompilationEndTime * field. In Amazon CloudWatch Logs, the start time might be later than this time. * That's because it takes time to download the compilation job, which depends on * the size of the compilation job container.

*/ inline void SetCompilationStartTime(Aws::Utils::DateTime&& value) { m_compilationStartTime = std::move(value); } /** *

The time when the model compilation job started the * CompilationJob instances.

You are billed for the time * between this timestamp and the timestamp in the CompilationEndTime * field. In Amazon CloudWatch Logs, the start time might be later than this time. * That's because it takes time to download the compilation job, which depends on * the size of the compilation job container.

*/ inline DescribeCompilationJobResult& WithCompilationStartTime(const Aws::Utils::DateTime& value) { SetCompilationStartTime(value); return *this;} /** *

The time when the model compilation job started the * CompilationJob instances.

You are billed for the time * between this timestamp and the timestamp in the CompilationEndTime * field. In Amazon CloudWatch Logs, the start time might be later than this time. * That's because it takes time to download the compilation job, which depends on * the size of the compilation job container.

*/ inline DescribeCompilationJobResult& WithCompilationStartTime(Aws::Utils::DateTime&& value) { SetCompilationStartTime(std::move(value)); return *this;} /** *

The time when the model compilation job on a compilation job instance ended. * For a successful or stopped job, this is when the job's model artifacts have * finished uploading. For a failed job, this is when Amazon SageMaker detected * that the job failed.

*/ inline const Aws::Utils::DateTime& GetCompilationEndTime() const{ return m_compilationEndTime; } /** *

The time when the model compilation job on a compilation job instance ended. * For a successful or stopped job, this is when the job's model artifacts have * finished uploading. For a failed job, this is when Amazon SageMaker detected * that the job failed.

*/ inline void SetCompilationEndTime(const Aws::Utils::DateTime& value) { m_compilationEndTime = value; } /** *

The time when the model compilation job on a compilation job instance ended. * For a successful or stopped job, this is when the job's model artifacts have * finished uploading. For a failed job, this is when Amazon SageMaker detected * that the job failed.

*/ inline void SetCompilationEndTime(Aws::Utils::DateTime&& value) { m_compilationEndTime = std::move(value); } /** *

The time when the model compilation job on a compilation job instance ended. * For a successful or stopped job, this is when the job's model artifacts have * finished uploading. For a failed job, this is when Amazon SageMaker detected * that the job failed.

*/ inline DescribeCompilationJobResult& WithCompilationEndTime(const Aws::Utils::DateTime& value) { SetCompilationEndTime(value); return *this;} /** *

The time when the model compilation job on a compilation job instance ended. * For a successful or stopped job, this is when the job's model artifacts have * finished uploading. For a failed job, this is when Amazon SageMaker detected * that the job failed.

*/ inline DescribeCompilationJobResult& WithCompilationEndTime(Aws::Utils::DateTime&& value) { SetCompilationEndTime(std::move(value)); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

The inference image to use when compiling a model. Specify an image only if * the target device is a cloud instance.

*/ inline const Aws::String& GetInferenceImage() const{ return m_inferenceImage; } /** *

The inference image to use when compiling a model. Specify an image only if * the target device is a cloud instance.

*/ inline void SetInferenceImage(const Aws::String& value) { m_inferenceImage = value; } /** *

The inference image to use when compiling a model. Specify an image only if * the target device is a cloud instance.

*/ inline void SetInferenceImage(Aws::String&& value) { m_inferenceImage = std::move(value); } /** *

The inference image to use when compiling a model. Specify an image only if * the target device is a cloud instance.

*/ inline void SetInferenceImage(const char* value) { m_inferenceImage.assign(value); } /** *

The inference image to use when compiling a model. Specify an image only if * the target device is a cloud instance.

*/ inline DescribeCompilationJobResult& WithInferenceImage(const Aws::String& value) { SetInferenceImage(value); return *this;} /** *

The inference image to use when compiling a model. Specify an image only if * the target device is a cloud instance.

*/ inline DescribeCompilationJobResult& WithInferenceImage(Aws::String&& value) { SetInferenceImage(std::move(value)); return *this;} /** *

The inference image to use when compiling a model. Specify an image only if * the target device is a cloud instance.

*/ inline DescribeCompilationJobResult& WithInferenceImage(const char* value) { SetInferenceImage(value); return *this;} /** *

The Amazon Resource Name (ARN) of the versioned model package that was * provided to SageMaker Neo when you initiated a compilation job.

*/ inline const Aws::String& GetModelPackageVersionArn() const{ return m_modelPackageVersionArn; } /** *

The Amazon Resource Name (ARN) of the versioned model package that was * provided to SageMaker Neo when you initiated a compilation job.

*/ inline void SetModelPackageVersionArn(const Aws::String& value) { m_modelPackageVersionArn = value; } /** *

The Amazon Resource Name (ARN) of the versioned model package that was * provided to SageMaker Neo when you initiated a compilation job.

*/ inline void SetModelPackageVersionArn(Aws::String&& value) { m_modelPackageVersionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the versioned model package that was * provided to SageMaker Neo when you initiated a compilation job.

*/ inline void SetModelPackageVersionArn(const char* value) { m_modelPackageVersionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the versioned model package that was * provided to SageMaker Neo when you initiated a compilation job.

*/ inline DescribeCompilationJobResult& WithModelPackageVersionArn(const Aws::String& value) { SetModelPackageVersionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the versioned model package that was * provided to SageMaker Neo when you initiated a compilation job.

*/ inline DescribeCompilationJobResult& WithModelPackageVersionArn(Aws::String&& value) { SetModelPackageVersionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the versioned model package that was * provided to SageMaker Neo when you initiated a compilation job.

*/ inline DescribeCompilationJobResult& WithModelPackageVersionArn(const char* value) { SetModelPackageVersionArn(value); return *this;} /** *

The time that the model compilation job was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The time that the model compilation job was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; } /** *

The time that the model compilation job was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); } /** *

The time that the model compilation job was created.

*/ inline DescribeCompilationJobResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The time that the model compilation job was created.

*/ inline DescribeCompilationJobResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The time that the status of the model compilation job was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The time that the status of the model compilation job was last modified.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTime = value; } /** *

The time that the status of the model compilation job was last modified.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTime = std::move(value); } /** *

The time that the status of the model compilation job was last modified.

*/ inline DescribeCompilationJobResult& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

The time that the status of the model compilation job was last modified.

*/ inline DescribeCompilationJobResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

If a model compilation job failed, the reason it failed.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

If a model compilation job failed, the reason it failed.

*/ inline void SetFailureReason(const Aws::String& value) { m_failureReason = value; } /** *

If a model compilation job failed, the reason it failed.

*/ inline void SetFailureReason(Aws::String&& value) { m_failureReason = std::move(value); } /** *

If a model compilation job failed, the reason it failed.

*/ inline void SetFailureReason(const char* value) { m_failureReason.assign(value); } /** *

If a model compilation job failed, the reason it failed.

*/ inline DescribeCompilationJobResult& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

If a model compilation job failed, the reason it failed.

*/ inline DescribeCompilationJobResult& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

If a model compilation job failed, the reason it failed.

*/ inline DescribeCompilationJobResult& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} /** *

Information about the location in Amazon S3 that has been configured for * storing the model artifacts used in the compilation job.

*/ inline const ModelArtifacts& GetModelArtifacts() const{ return m_modelArtifacts; } /** *

Information about the location in Amazon S3 that has been configured for * storing the model artifacts used in the compilation job.

*/ inline void SetModelArtifacts(const ModelArtifacts& value) { m_modelArtifacts = value; } /** *

Information about the location in Amazon S3 that has been configured for * storing the model artifacts used in the compilation job.

*/ inline void SetModelArtifacts(ModelArtifacts&& value) { m_modelArtifacts = std::move(value); } /** *

Information about the location in Amazon S3 that has been configured for * storing the model artifacts used in the compilation job.

*/ inline DescribeCompilationJobResult& WithModelArtifacts(const ModelArtifacts& value) { SetModelArtifacts(value); return *this;} /** *

Information about the location in Amazon S3 that has been configured for * storing the model artifacts used in the compilation job.

*/ inline DescribeCompilationJobResult& WithModelArtifacts(ModelArtifacts&& value) { SetModelArtifacts(std::move(value)); return *this;} /** *

Provides a BLAKE2 hash value that identifies the compiled model artifacts in * Amazon S3.

*/ inline const ModelDigests& GetModelDigests() const{ return m_modelDigests; } /** *

Provides a BLAKE2 hash value that identifies the compiled model artifacts in * Amazon S3.

*/ inline void SetModelDigests(const ModelDigests& value) { m_modelDigests = value; } /** *

Provides a BLAKE2 hash value that identifies the compiled model artifacts in * Amazon S3.

*/ inline void SetModelDigests(ModelDigests&& value) { m_modelDigests = std::move(value); } /** *

Provides a BLAKE2 hash value that identifies the compiled model artifacts in * Amazon S3.

*/ inline DescribeCompilationJobResult& WithModelDigests(const ModelDigests& value) { SetModelDigests(value); return *this;} /** *

Provides a BLAKE2 hash value that identifies the compiled model artifacts in * Amazon S3.

*/ inline DescribeCompilationJobResult& WithModelDigests(ModelDigests&& value) { SetModelDigests(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes * to perform the model compilation job.

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

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes * to perform the model compilation job.

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

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes * to perform the model compilation job.

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

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes * to perform the model compilation job.

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

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes * to perform the model compilation job.

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

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes * to perform the model compilation job.

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

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes * to perform the model compilation job.

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

Information about the location in Amazon S3 of the input model artifacts, the * name and shape of the expected data inputs, and the framework in which the model * was trained.

*/ inline const InputConfig& GetInputConfig() const{ return m_inputConfig; } /** *

Information about the location in Amazon S3 of the input model artifacts, the * name and shape of the expected data inputs, and the framework in which the model * was trained.

*/ inline void SetInputConfig(const InputConfig& value) { m_inputConfig = value; } /** *

Information about the location in Amazon S3 of the input model artifacts, the * name and shape of the expected data inputs, and the framework in which the model * was trained.

*/ inline void SetInputConfig(InputConfig&& value) { m_inputConfig = std::move(value); } /** *

Information about the location in Amazon S3 of the input model artifacts, the * name and shape of the expected data inputs, and the framework in which the model * was trained.

*/ inline DescribeCompilationJobResult& WithInputConfig(const InputConfig& value) { SetInputConfig(value); return *this;} /** *

Information about the location in Amazon S3 of the input model artifacts, the * name and shape of the expected data inputs, and the framework in which the model * was trained.

*/ inline DescribeCompilationJobResult& WithInputConfig(InputConfig&& value) { SetInputConfig(std::move(value)); return *this;} /** *

Information about the output location for the compiled model and the target * device that the model runs on.

*/ inline const OutputConfig& GetOutputConfig() const{ return m_outputConfig; } /** *

Information about the output location for the compiled model and the target * device that the model runs on.

*/ inline void SetOutputConfig(const OutputConfig& value) { m_outputConfig = value; } /** *

Information about the output location for the compiled model and the target * device that the model runs on.

*/ inline void SetOutputConfig(OutputConfig&& value) { m_outputConfig = std::move(value); } /** *

Information about the output location for the compiled model and the target * device that the model runs on.

*/ inline DescribeCompilationJobResult& WithOutputConfig(const OutputConfig& value) { SetOutputConfig(value); return *this;} /** *

Information about the output location for the compiled model and the target * device that the model runs on.

*/ inline DescribeCompilationJobResult& WithOutputConfig(OutputConfig&& value) { SetOutputConfig(std::move(value)); return *this;} /** *

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

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

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

*/ inline void SetVpcConfig(const NeoVpcConfig& value) { m_vpcConfig = value; } /** *

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

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

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

*/ inline DescribeCompilationJobResult& WithVpcConfig(const NeoVpcConfig& value) { SetVpcConfig(value); return *this;} /** *

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

*/ inline DescribeCompilationJobResult& WithVpcConfig(NeoVpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeCompilationJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeCompilationJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeCompilationJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_compilationJobName; Aws::String m_compilationJobArn; CompilationJobStatus m_compilationJobStatus; Aws::Utils::DateTime m_compilationStartTime; Aws::Utils::DateTime m_compilationEndTime; StoppingCondition m_stoppingCondition; Aws::String m_inferenceImage; Aws::String m_modelPackageVersionArn; Aws::Utils::DateTime m_creationTime; Aws::Utils::DateTime m_lastModifiedTime; Aws::String m_failureReason; ModelArtifacts m_modelArtifacts; ModelDigests m_modelDigests; Aws::String m_roleArn; InputConfig m_inputConfig; OutputConfig m_outputConfig; NeoVpcConfig m_vpcConfig; Aws::String m_requestId; }; } // namespace Model } // namespace SageMaker } // namespace Aws