/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 DescribeImageResult { public: AWS_SAGEMAKER_API DescribeImageResult(); AWS_SAGEMAKER_API DescribeImageResult(const Aws::AmazonWebServiceResult& result); AWS_SAGEMAKER_API DescribeImageResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

When the image was created.

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

When the image was created.

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

When the image was created.

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

When the image was created.

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

When the image was created.

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

The description of the image.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the image.

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

The description of the image.

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

The description of the image.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description of the image.

*/ inline DescribeImageResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the image.

*/ inline DescribeImageResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the image.

*/ inline DescribeImageResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The name of the image as displayed.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The name of the image as displayed.

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

The name of the image as displayed.

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

The name of the image as displayed.

*/ inline void SetDisplayName(const char* value) { m_displayName.assign(value); } /** *

The name of the image as displayed.

*/ inline DescribeImageResult& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The name of the image as displayed.

*/ inline DescribeImageResult& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The name of the image as displayed.

*/ inline DescribeImageResult& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

When a create, update, or delete operation fails, the reason for the * failure.

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

When a create, update, or delete operation fails, the reason for the * failure.

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

When a create, update, or delete operation fails, the reason for the * failure.

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

When a create, update, or delete operation fails, the reason for the * failure.

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

When a create, update, or delete operation fails, the reason for the * failure.

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

When a create, update, or delete operation fails, the reason for the * failure.

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

When a create, update, or delete operation fails, the reason for the * failure.

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

The ARN of the image.

*/ inline const Aws::String& GetImageArn() const{ return m_imageArn; } /** *

The ARN of the image.

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

The ARN of the image.

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

The ARN of the image.

*/ inline void SetImageArn(const char* value) { m_imageArn.assign(value); } /** *

The ARN of the image.

*/ inline DescribeImageResult& WithImageArn(const Aws::String& value) { SetImageArn(value); return *this;} /** *

The ARN of the image.

*/ inline DescribeImageResult& WithImageArn(Aws::String&& value) { SetImageArn(std::move(value)); return *this;} /** *

The ARN of the image.

*/ inline DescribeImageResult& WithImageArn(const char* value) { SetImageArn(value); return *this;} /** *

The name of the image.

*/ inline const Aws::String& GetImageName() const{ return m_imageName; } /** *

The name of the image.

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

The name of the image.

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

The name of the image.

*/ inline void SetImageName(const char* value) { m_imageName.assign(value); } /** *

The name of the image.

*/ inline DescribeImageResult& WithImageName(const Aws::String& value) { SetImageName(value); return *this;} /** *

The name of the image.

*/ inline DescribeImageResult& WithImageName(Aws::String&& value) { SetImageName(std::move(value)); return *this;} /** *

The name of the image.

*/ inline DescribeImageResult& WithImageName(const char* value) { SetImageName(value); return *this;} /** *

The status of the image.

*/ inline const ImageStatus& GetImageStatus() const{ return m_imageStatus; } /** *

The status of the image.

*/ inline void SetImageStatus(const ImageStatus& value) { m_imageStatus = value; } /** *

The status of the image.

*/ inline void SetImageStatus(ImageStatus&& value) { m_imageStatus = std::move(value); } /** *

The status of the image.

*/ inline DescribeImageResult& WithImageStatus(const ImageStatus& value) { SetImageStatus(value); return *this;} /** *

The status of the image.

*/ inline DescribeImageResult& WithImageStatus(ImageStatus&& value) { SetImageStatus(std::move(value)); return *this;} /** *

When the image was last modified.

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

When the image was last modified.

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

When the image was last modified.

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

When the image was last modified.

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

When the image was last modified.

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

The ARN of the IAM role that enables Amazon SageMaker to perform tasks on * your behalf.

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

The ARN of the IAM role that enables Amazon SageMaker to perform tasks on * your behalf.

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

The ARN of the IAM role that enables Amazon SageMaker to perform tasks on * your behalf.

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

The ARN of the IAM role that enables Amazon SageMaker to perform tasks on * your behalf.

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

The ARN of the IAM role that enables Amazon SageMaker to perform tasks on * your behalf.

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

The ARN of the IAM role that enables Amazon SageMaker to perform tasks on * your behalf.

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

The ARN of the IAM role that enables Amazon SageMaker to perform tasks on * your behalf.

*/ inline DescribeImageResult& WithRoleArn(const char* value) { SetRoleArn(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 DescribeImageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeImageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeImageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::DateTime m_creationTime; Aws::String m_description; Aws::String m_displayName; Aws::String m_failureReason; Aws::String m_imageArn; Aws::String m_imageName; ImageStatus m_imageStatus; Aws::Utils::DateTime m_lastModifiedTime; Aws::String m_roleArn; Aws::String m_requestId; }; } // namespace Model } // namespace SageMaker } // namespace Aws