/** * 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 resource association result for a percentage custom line * item.

See Also:

AWS * API Reference

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

The resource ARN that was associated to the custom line item.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The resource ARN that was associated to the custom line item.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The resource ARN that was associated to the custom line item.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The resource ARN that was associated to the custom line item.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The resource ARN that was associated to the custom line item.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The resource ARN that was associated to the custom line item.

*/ inline AssociateResourceResponseElement& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The resource ARN that was associated to the custom line item.

*/ inline AssociateResourceResponseElement& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The resource ARN that was associated to the custom line item.

*/ inline AssociateResourceResponseElement& WithArn(const char* value) { SetArn(value); return *this;} /** *

An AssociateResourceError that will populate if the resource * association fails.

*/ inline const AssociateResourceError& GetError() const{ return m_error; } /** *

An AssociateResourceError that will populate if the resource * association fails.

*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *

An AssociateResourceError that will populate if the resource * association fails.

*/ inline void SetError(const AssociateResourceError& value) { m_errorHasBeenSet = true; m_error = value; } /** *

An AssociateResourceError that will populate if the resource * association fails.

*/ inline void SetError(AssociateResourceError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *

An AssociateResourceError that will populate if the resource * association fails.

*/ inline AssociateResourceResponseElement& WithError(const AssociateResourceError& value) { SetError(value); return *this;} /** *

An AssociateResourceError that will populate if the resource * association fails.

*/ inline AssociateResourceResponseElement& WithError(AssociateResourceError&& value) { SetError(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; AssociateResourceError m_error; bool m_errorHasBeenSet = false; }; } // namespace Model } // namespace BillingConductor } // namespace Aws