/** * 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 namespace Aws { namespace BillingConductor { namespace Model { /** */ class UpdateBillingGroupRequest : public BillingConductorRequest { public: AWS_BILLINGCONDUCTOR_API UpdateBillingGroupRequest(); // 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 "UpdateBillingGroup"; } AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override; /** *

The Amazon Resource Name (ARN) of the billing group being updated.

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

The Amazon Resource Name (ARN) of the billing group being updated.

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

The Amazon Resource Name (ARN) of the billing group being updated.

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

The Amazon Resource Name (ARN) of the billing group being updated.

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

The Amazon Resource Name (ARN) of the billing group being updated.

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

The Amazon Resource Name (ARN) of the billing group being updated.

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

The Amazon Resource Name (ARN) of the billing group being updated.

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

The Amazon Resource Name (ARN) of the billing group being updated.

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

The name of the billing group. The names must be unique to each billing * group.

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

The name of the billing group. The names must be unique to each billing * group.

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

The name of the billing group. The names must be unique to each billing * group.

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

The name of the billing group. The names must be unique to each billing * group.

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

The name of the billing group. The names must be unique to each billing * group.

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

The name of the billing group. The names must be unique to each billing * group.

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

The name of the billing group. The names must be unique to each billing * group.

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

The name of the billing group. The names must be unique to each billing * group.

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

The status of the billing group. Only one of the valid values can be used. *

*/ inline const BillingGroupStatus& GetStatus() const{ return m_status; } /** *

The status of the billing group. Only one of the valid values can be used. *

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the billing group. Only one of the valid values can be used. *

*/ inline void SetStatus(const BillingGroupStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the billing group. Only one of the valid values can be used. *

*/ inline void SetStatus(BillingGroupStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the billing group. Only one of the valid values can be used. *

*/ inline UpdateBillingGroupRequest& WithStatus(const BillingGroupStatus& value) { SetStatus(value); return *this;} /** *

The status of the billing group. Only one of the valid values can be used. *

*/ inline UpdateBillingGroupRequest& WithStatus(BillingGroupStatus&& value) { SetStatus(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 UpdateBillingGroupRequest& 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 UpdateBillingGroupRequest& WithComputationPreference(ComputationPreference&& value) { SetComputationPreference(std::move(value)); return *this;} /** *

A description of the billing group.

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

A description of the billing group.

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

A description of the billing group.

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

A description of the billing group.

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

A description of the billing group.

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

A description of the billing group.

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

A description of the billing group.

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

A description of the billing group.

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

Specifies if the billing group has automatic account association * (AutoAssociate) enabled.

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

Specifies if the billing group has automatic account association * (AutoAssociate) enabled.

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

Specifies if the billing group has automatic account association * (AutoAssociate) enabled.

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

Specifies if the billing group has automatic account association * (AutoAssociate) enabled.

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

Specifies if the billing group has automatic account association * (AutoAssociate) enabled.

*/ inline UpdateBillingGroupRequest& WithAccountGrouping(const UpdateBillingGroupAccountGrouping& value) { SetAccountGrouping(value); return *this;} /** *

Specifies if the billing group has automatic account association * (AutoAssociate) enabled.

*/ inline UpdateBillingGroupRequest& WithAccountGrouping(UpdateBillingGroupAccountGrouping&& value) { SetAccountGrouping(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; BillingGroupStatus m_status; bool m_statusHasBeenSet = false; ComputationPreference m_computationPreference; bool m_computationPreferenceHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; UpdateBillingGroupAccountGrouping m_accountGrouping; bool m_accountGroupingHasBeenSet = false; }; } // namespace Model } // namespace BillingConductor } // namespace Aws