/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object representing an Amazon ECR image layer failure.See
* Also:
AWS
* API Reference
The layer digest associated with the failure.
*/ inline const Aws::String& GetLayerDigest() const{ return m_layerDigest; } /** *The layer digest associated with the failure.
*/ inline bool LayerDigestHasBeenSet() const { return m_layerDigestHasBeenSet; } /** *The layer digest associated with the failure.
*/ inline void SetLayerDigest(const Aws::String& value) { m_layerDigestHasBeenSet = true; m_layerDigest = value; } /** *The layer digest associated with the failure.
*/ inline void SetLayerDigest(Aws::String&& value) { m_layerDigestHasBeenSet = true; m_layerDigest = std::move(value); } /** *The layer digest associated with the failure.
*/ inline void SetLayerDigest(const char* value) { m_layerDigestHasBeenSet = true; m_layerDigest.assign(value); } /** *The layer digest associated with the failure.
*/ inline LayerFailure& WithLayerDigest(const Aws::String& value) { SetLayerDigest(value); return *this;} /** *The layer digest associated with the failure.
*/ inline LayerFailure& WithLayerDigest(Aws::String&& value) { SetLayerDigest(std::move(value)); return *this;} /** *The layer digest associated with the failure.
*/ inline LayerFailure& WithLayerDigest(const char* value) { SetLayerDigest(value); return *this;} /** *The failure code associated with the failure.
*/ inline const LayerFailureCode& GetFailureCode() const{ return m_failureCode; } /** *The failure code associated with the failure.
*/ inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; } /** *The failure code associated with the failure.
*/ inline void SetFailureCode(const LayerFailureCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; } /** *The failure code associated with the failure.
*/ inline void SetFailureCode(LayerFailureCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); } /** *The failure code associated with the failure.
*/ inline LayerFailure& WithFailureCode(const LayerFailureCode& value) { SetFailureCode(value); return *this;} /** *The failure code associated with the failure.
*/ inline LayerFailure& WithFailureCode(LayerFailureCode&& 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 LayerFailure& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *The reason for the failure.
*/ inline LayerFailure& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *The reason for the failure.
*/ inline LayerFailure& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} private: Aws::String m_layerDigest; bool m_layerDigestHasBeenSet = false; LayerFailureCode m_failureCode; bool m_failureCodeHasBeenSet = false; Aws::String m_failureReason; bool m_failureReasonHasBeenSet = false; }; } // namespace Model } // namespace ECR } // namespace Aws