/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace BillingConductor { namespace Model { /** */ class CreateBillingGroupRequest : public BillingConductorRequest { public: AWS_BILLINGCONDUCTOR_API CreateBillingGroupRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateBillingGroup"; } AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override; AWS_BILLINGCONDUCTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The token that is needed to support idempotency. Idempotency isn't currently * supported, but will be implemented in a future update.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The token that is needed to support idempotency. Idempotency isn't currently * supported, but will be implemented in a future update.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The token that is needed to support idempotency. Idempotency isn't currently * supported, but will be implemented in a future update.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The token that is needed to support idempotency. Idempotency isn't currently * supported, but will be implemented in a future update.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The token that is needed to support idempotency. Idempotency isn't currently * supported, but will be implemented in a future update.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The token that is needed to support idempotency. Idempotency isn't currently * supported, but will be implemented in a future update.

*/ inline CreateBillingGroupRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The token that is needed to support idempotency. Idempotency isn't currently * supported, but will be implemented in a future update.

*/ inline CreateBillingGroupRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The token that is needed to support idempotency. Idempotency isn't currently * supported, but will be implemented in a future update.

*/ inline CreateBillingGroupRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The billing group name. The names must be unique.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The billing group name. The names must be unique.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The billing group name. The names must be unique.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The billing group name. The names must be unique.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The billing group name. The names must be unique.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The billing group name. The names must be unique.

*/ inline CreateBillingGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The billing group name. The names must be unique.

*/ inline CreateBillingGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The billing group name. The names must be unique.

*/ inline CreateBillingGroupRequest& WithName(const char* value) { SetName(value); return *this;} /** *

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

*/ inline const AccountGrouping& GetAccountGrouping() const{ return m_accountGrouping; } /** *

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

*/ inline bool AccountGroupingHasBeenSet() const { return m_accountGroupingHasBeenSet; } /** *

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

*/ inline void SetAccountGrouping(const AccountGrouping& value) { m_accountGroupingHasBeenSet = true; m_accountGrouping = value; } /** *

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

*/ inline void SetAccountGrouping(AccountGrouping&& value) { m_accountGroupingHasBeenSet = true; m_accountGrouping = std::move(value); } /** *

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

*/ inline CreateBillingGroupRequest& WithAccountGrouping(const AccountGrouping& value) { SetAccountGrouping(value); return *this;} /** *

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

*/ inline CreateBillingGroupRequest& WithAccountGrouping(AccountGrouping&& value) { SetAccountGrouping(std::move(value)); return *this;} /** *

The preferences and settings that will be used to compute the Amazon Web * Services charges for a billing group.

*/ inline const ComputationPreference& GetComputationPreference() const{ return m_computationPreference; } /** *

The preferences and settings that will be used to compute the Amazon Web * Services charges for a billing group.

*/ inline bool ComputationPreferenceHasBeenSet() const { return m_computationPreferenceHasBeenSet; } /** *

The preferences and settings that will be used to compute the Amazon Web * Services charges for a billing group.

*/ inline void SetComputationPreference(const ComputationPreference& value) { m_computationPreferenceHasBeenSet = true; m_computationPreference = value; } /** *

The preferences and settings that will be used to compute the Amazon Web * Services charges for a billing group.

*/ inline void SetComputationPreference(ComputationPreference&& value) { m_computationPreferenceHasBeenSet = true; m_computationPreference = std::move(value); } /** *

The preferences and settings that will be used to compute the Amazon Web * Services charges for a billing group.

*/ inline CreateBillingGroupRequest& WithComputationPreference(const ComputationPreference& value) { SetComputationPreference(value); return *this;} /** *

The preferences and settings that will be used to compute the Amazon Web * Services charges for a billing group.

*/ inline CreateBillingGroupRequest& WithComputationPreference(ComputationPreference&& value) { SetComputationPreference(std::move(value)); return *this;} /** *

The account ID that serves as the main account in a billing group.

*/ inline const Aws::String& GetPrimaryAccountId() const{ return m_primaryAccountId; } /** *

The account ID that serves as the main account in a billing group.

*/ inline bool PrimaryAccountIdHasBeenSet() const { return m_primaryAccountIdHasBeenSet; } /** *

The account ID that serves as the main account in a billing group.

*/ inline void SetPrimaryAccountId(const Aws::String& value) { m_primaryAccountIdHasBeenSet = true; m_primaryAccountId = value; } /** *

The account ID that serves as the main account in a billing group.

*/ inline void SetPrimaryAccountId(Aws::String&& value) { m_primaryAccountIdHasBeenSet = true; m_primaryAccountId = std::move(value); } /** *

The account ID that serves as the main account in a billing group.

*/ inline void SetPrimaryAccountId(const char* value) { m_primaryAccountIdHasBeenSet = true; m_primaryAccountId.assign(value); } /** *

The account ID that serves as the main account in a billing group.

*/ inline CreateBillingGroupRequest& WithPrimaryAccountId(const Aws::String& value) { SetPrimaryAccountId(value); return *this;} /** *

The account ID that serves as the main account in a billing group.

*/ inline CreateBillingGroupRequest& WithPrimaryAccountId(Aws::String&& value) { SetPrimaryAccountId(std::move(value)); return *this;} /** *

The account ID that serves as the main account in a billing group.

*/ inline CreateBillingGroupRequest& WithPrimaryAccountId(const char* value) { SetPrimaryAccountId(value); return *this;} /** *

The description of the billing group.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the billing group.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the billing group.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the billing group.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the billing group.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the billing group.

*/ inline CreateBillingGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the billing group.

*/ inline CreateBillingGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the billing group.

*/ inline CreateBillingGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

A map that contains tag keys and tag values that are attached to a billing * group. This feature isn't available during the beta.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A map that contains tag keys and tag values that are attached to a billing * group. This feature isn't available during the beta.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A map that contains tag keys and tag values that are attached to a billing * group. This feature isn't available during the beta.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A map that contains tag keys and tag values that are attached to a billing * group. This feature isn't available during the beta.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A map that contains tag keys and tag values that are attached to a billing * group. This feature isn't available during the beta.

*/ inline CreateBillingGroupRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A map that contains tag keys and tag values that are attached to a billing * group. This feature isn't available during the beta.

*/ inline CreateBillingGroupRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A map that contains tag keys and tag values that are attached to a billing * group. This feature isn't available during the beta.

*/ inline CreateBillingGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A map that contains tag keys and tag values that are attached to a billing * group. This feature isn't available during the beta.

*/ inline CreateBillingGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A map that contains tag keys and tag values that are attached to a billing * group. This feature isn't available during the beta.

*/ inline CreateBillingGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A map that contains tag keys and tag values that are attached to a billing * group. This feature isn't available during the beta.

*/ inline CreateBillingGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A map that contains tag keys and tag values that are attached to a billing * group. This feature isn't available during the beta.

*/ inline CreateBillingGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A map that contains tag keys and tag values that are attached to a billing * group. This feature isn't available during the beta.

*/ inline CreateBillingGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A map that contains tag keys and tag values that are attached to a billing * group. This feature isn't available during the beta.

*/ inline CreateBillingGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; AccountGrouping m_accountGrouping; bool m_accountGroupingHasBeenSet = false; ComputationPreference m_computationPreference; bool m_computationPreferenceHasBeenSet = false; Aws::String m_primaryAccountId; bool m_primaryAccountIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace BillingConductor } // namespace Aws