/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace BillingConductor { namespace Model { /** *

A representation of a resource association error.

See Also:

* AWS * API Reference

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

The reason why the resource association failed.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The reason why the resource association failed.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The reason why the resource association failed.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The reason why the resource association failed.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The reason why the resource association failed.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The reason why the resource association failed.

*/ inline AssociateResourceError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The reason why the resource association failed.

*/ inline AssociateResourceError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The reason why the resource association failed.

*/ inline AssociateResourceError& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

A static error code that's used to classify the type of failure.

*/ inline const AssociateResourceErrorReason& GetReason() const{ return m_reason; } /** *

A static error code that's used to classify the type of failure.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

A static error code that's used to classify the type of failure.

*/ inline void SetReason(const AssociateResourceErrorReason& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

A static error code that's used to classify the type of failure.

*/ inline void SetReason(AssociateResourceErrorReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

A static error code that's used to classify the type of failure.

*/ inline AssociateResourceError& WithReason(const AssociateResourceErrorReason& value) { SetReason(value); return *this;} /** *

A static error code that's used to classify the type of failure.

*/ inline AssociateResourceError& WithReason(AssociateResourceErrorReason&& value) { SetReason(std::move(value)); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; AssociateResourceErrorReason m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace BillingConductor } // namespace Aws