/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A failed resource. For a list of common causes, see API
* failure reasons in the Amazon Elastic Container Service Developer
* Guide.See Also:
AWS API
* Reference
The Amazon Resource Name (ARN) of the failed resource.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the failed resource.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the failed resource.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the failed resource.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the failed resource.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the failed resource.
*/ inline Failure& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the failed resource.
*/ inline Failure& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the failed resource.
*/ inline Failure& WithArn(const char* value) { SetArn(value); return *this;} /** *The reason for the failure.
*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *The reason for the failure.
*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *The reason for the failure.
*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *The reason for the failure.
*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *The reason for the failure.
*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *The reason for the failure.
*/ inline Failure& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *The reason for the failure.
*/ inline Failure& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *The reason for the failure.
*/ inline Failure& WithReason(const char* value) { SetReason(value); return *this;} /** *The details of the failure.
*/ inline const Aws::String& GetDetail() const{ return m_detail; } /** *The details of the failure.
*/ inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; } /** *The details of the failure.
*/ inline void SetDetail(const Aws::String& value) { m_detailHasBeenSet = true; m_detail = value; } /** *The details of the failure.
*/ inline void SetDetail(Aws::String&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); } /** *The details of the failure.
*/ inline void SetDetail(const char* value) { m_detailHasBeenSet = true; m_detail.assign(value); } /** *The details of the failure.
*/ inline Failure& WithDetail(const Aws::String& value) { SetDetail(value); return *this;} /** *The details of the failure.
*/ inline Failure& WithDetail(Aws::String&& value) { SetDetail(std::move(value)); return *this;} /** *The details of the failure.
*/ inline Failure& WithDetail(const char* value) { SetDetail(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; Aws::String m_detail; bool m_detailHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws