/** * 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 { /** *

The set of accounts that will be under the billing group. The set of accounts * resemble the linked accounts in a consolidated billing family.

See * Also:

AWS * API Reference

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

The account IDs that make up the billing group. Account IDs must be a part of * the consolidated billing family, and not associated with another billing * group.

*/ inline const Aws::Vector& GetLinkedAccountIds() const{ return m_linkedAccountIds; } /** *

The account IDs that make up the billing group. Account IDs must be a part of * the consolidated billing family, and not associated with another billing * group.

*/ inline bool LinkedAccountIdsHasBeenSet() const { return m_linkedAccountIdsHasBeenSet; } /** *

The account IDs that make up the billing group. Account IDs must be a part of * the consolidated billing family, and not associated with another billing * group.

*/ inline void SetLinkedAccountIds(const Aws::Vector& value) { m_linkedAccountIdsHasBeenSet = true; m_linkedAccountIds = value; } /** *

The account IDs that make up the billing group. Account IDs must be a part of * the consolidated billing family, and not associated with another billing * group.

*/ inline void SetLinkedAccountIds(Aws::Vector&& value) { m_linkedAccountIdsHasBeenSet = true; m_linkedAccountIds = std::move(value); } /** *

The account IDs that make up the billing group. Account IDs must be a part of * the consolidated billing family, and not associated with another billing * group.

*/ inline AccountGrouping& WithLinkedAccountIds(const Aws::Vector& value) { SetLinkedAccountIds(value); return *this;} /** *

The account IDs that make up the billing group. Account IDs must be a part of * the consolidated billing family, and not associated with another billing * group.

*/ inline AccountGrouping& WithLinkedAccountIds(Aws::Vector&& value) { SetLinkedAccountIds(std::move(value)); return *this;} /** *

The account IDs that make up the billing group. Account IDs must be a part of * the consolidated billing family, and not associated with another billing * group.

*/ inline AccountGrouping& AddLinkedAccountIds(const Aws::String& value) { m_linkedAccountIdsHasBeenSet = true; m_linkedAccountIds.push_back(value); return *this; } /** *

The account IDs that make up the billing group. Account IDs must be a part of * the consolidated billing family, and not associated with another billing * group.

*/ inline AccountGrouping& AddLinkedAccountIds(Aws::String&& value) { m_linkedAccountIdsHasBeenSet = true; m_linkedAccountIds.push_back(std::move(value)); return *this; } /** *

The account IDs that make up the billing group. Account IDs must be a part of * the consolidated billing family, and not associated with another billing * group.

*/ inline AccountGrouping& AddLinkedAccountIds(const char* value) { m_linkedAccountIdsHasBeenSet = true; m_linkedAccountIds.push_back(value); return *this; } /** *

Specifies if this billing group will automatically associate newly added * Amazon Web Services accounts that join your consolidated billing family.

*/ inline bool GetAutoAssociate() const{ return m_autoAssociate; } /** *

Specifies if this billing group will automatically associate newly added * Amazon Web Services accounts that join your consolidated billing family.

*/ inline bool AutoAssociateHasBeenSet() const { return m_autoAssociateHasBeenSet; } /** *

Specifies if this billing group will automatically associate newly added * Amazon Web Services accounts that join your consolidated billing family.

*/ inline void SetAutoAssociate(bool value) { m_autoAssociateHasBeenSet = true; m_autoAssociate = value; } /** *

Specifies if this billing group will automatically associate newly added * Amazon Web Services accounts that join your consolidated billing family.

*/ inline AccountGrouping& WithAutoAssociate(bool value) { SetAutoAssociate(value); return *this;} private: Aws::Vector m_linkedAccountIds; bool m_linkedAccountIdsHasBeenSet = false; bool m_autoAssociate; bool m_autoAssociateHasBeenSet = false; }; } // namespace Model } // namespace BillingConductor } // namespace Aws