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

See Also:

AWS * API Reference

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

The resource ARN that was disassociated from the custom line item.

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

The resource ARN that was disassociated from the custom line item.

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

The resource ARN that was disassociated from the custom line item.

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

The resource ARN that was disassociated from the custom line item.

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

The resource ARN that was disassociated from the custom line item.

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

The resource ARN that was disassociated from the custom line item.

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

The resource ARN that was disassociated from the custom line item.

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

The resource ARN that was disassociated from the custom line item.

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

An AssociateResourceError that's shown if the resource * disassociation fails.

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

An AssociateResourceError that's shown if the resource * disassociation fails.

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

An AssociateResourceError that's shown if the resource * disassociation fails.

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

An AssociateResourceError that's shown if the resource * disassociation fails.

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

An AssociateResourceError that's shown if the resource * disassociation fails.

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

An AssociateResourceError that's shown if the resource * disassociation fails.

*/ inline DisassociateResourceResponseElement& 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