/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECR { namespace Model { /** *

An object representing an Amazon ECR image failure.

See Also:

* AWS * API Reference

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

The image ID associated with the failure.

*/ inline const ImageIdentifier& GetImageId() const{ return m_imageId; } /** *

The image ID associated with the failure.

*/ inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; } /** *

The image ID associated with the failure.

*/ inline void SetImageId(const ImageIdentifier& value) { m_imageIdHasBeenSet = true; m_imageId = value; } /** *

The image ID associated with the failure.

*/ inline void SetImageId(ImageIdentifier&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); } /** *

The image ID associated with the failure.

*/ inline ImageFailure& WithImageId(const ImageIdentifier& value) { SetImageId(value); return *this;} /** *

The image ID associated with the failure.

*/ inline ImageFailure& WithImageId(ImageIdentifier&& value) { SetImageId(std::move(value)); return *this;} /** *

The code associated with the failure.

*/ inline const ImageFailureCode& GetFailureCode() const{ return m_failureCode; } /** *

The code associated with the failure.

*/ inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; } /** *

The code associated with the failure.

*/ inline void SetFailureCode(const ImageFailureCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; } /** *

The code associated with the failure.

*/ inline void SetFailureCode(ImageFailureCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); } /** *

The code associated with the failure.

*/ inline ImageFailure& WithFailureCode(const ImageFailureCode& value) { SetFailureCode(value); return *this;} /** *

The code associated with the failure.

*/ inline ImageFailure& WithFailureCode(ImageFailureCode&& value) { SetFailureCode(std::move(value)); return *this;} /** *

The reason for the failure.

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

The reason for the failure.

*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *

The reason for the failure.

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

The reason for the failure.

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

The reason for the failure.

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

The reason for the failure.

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

The reason for the failure.

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

The reason for the failure.

*/ inline ImageFailure& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} private: ImageIdentifier m_imageId; bool m_imageIdHasBeenSet = false; ImageFailureCode m_failureCode; bool m_failureCodeHasBeenSet = false; Aws::String m_failureReason; bool m_failureReasonHasBeenSet = false; }; } // namespace Model } // namespace ECR } // namespace Aws