/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { class AWS_SAGEMAKER_API DescribeCompilationJobResult { public: DescribeCompilationJobResult(); DescribeCompilationJobResult(const Aws::AmazonWebServiceResult& result); 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 an IAM role that Amazon SageMaker assumes * to perform the model compilation job.

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

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

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

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

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

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

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

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

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

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

*/ inline DescribeCompilationJobResult& WithCompilationJobArn(Aws::String&& value) { SetCompilationJobArn(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& 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 * DescribeCompilationJobResponse$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 * DescribeCompilationJobResponse$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 * DescribeCompilationJobResponse$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 * DescribeCompilationJobResponse$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 * DescribeCompilationJobResponse$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 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;} /** *

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

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

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

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

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

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

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

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

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

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

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

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

The Amazon Resource Name (ARN) of 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;} 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::Utils::DateTime m_creationTime; Aws::Utils::DateTime m_lastModifiedTime; Aws::String m_failureReason; ModelArtifacts m_modelArtifacts; Aws::String m_roleArn; InputConfig m_inputConfig; OutputConfig m_outputConfig; }; } // namespace Model } // namespace SageMaker } // namespace Aws