/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace BillingConductor { namespace Model { /** */ class UpdateCustomLineItemRequest : public BillingConductorRequest { public: AWS_BILLINGCONDUCTOR_API UpdateCustomLineItemRequest(); // 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 "UpdateCustomLineItem"; } AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override; /** *

The ARN of the custom line item to be updated.

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

The ARN of the custom line item to be updated.

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

The ARN of the custom line item to be updated.

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

The ARN of the custom line item to be updated.

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

The ARN of the custom line item to be updated.

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

The ARN of the custom line item to be updated.

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

The ARN of the custom line item to be updated.

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

The ARN of the custom line item to be updated.

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

The new name for the custom line item.

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

The new name for the custom line item.

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

The new name for the custom line item.

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

The new name for the custom line item.

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

The new name for the custom line item.

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

The new name for the custom line item.

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

The new name for the custom line item.

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

The new name for the custom line item.

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

The new line item description of the custom line item.

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

The new line item description of the custom line item.

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

The new line item description of the custom line item.

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

The new line item description of the custom line item.

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

The new line item description of the custom line item.

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

The new line item description of the custom line item.

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

The new line item description of the custom line item.

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

The new line item description of the custom line item.

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

A ListCustomLineItemChargeDetails containing the new charge * details for the custom line item.

*/ inline const UpdateCustomLineItemChargeDetails& GetChargeDetails() const{ return m_chargeDetails; } /** *

A ListCustomLineItemChargeDetails containing the new charge * details for the custom line item.

*/ inline bool ChargeDetailsHasBeenSet() const { return m_chargeDetailsHasBeenSet; } /** *

A ListCustomLineItemChargeDetails containing the new charge * details for the custom line item.

*/ inline void SetChargeDetails(const UpdateCustomLineItemChargeDetails& value) { m_chargeDetailsHasBeenSet = true; m_chargeDetails = value; } /** *

A ListCustomLineItemChargeDetails containing the new charge * details for the custom line item.

*/ inline void SetChargeDetails(UpdateCustomLineItemChargeDetails&& value) { m_chargeDetailsHasBeenSet = true; m_chargeDetails = std::move(value); } /** *

A ListCustomLineItemChargeDetails containing the new charge * details for the custom line item.

*/ inline UpdateCustomLineItemRequest& WithChargeDetails(const UpdateCustomLineItemChargeDetails& value) { SetChargeDetails(value); return *this;} /** *

A ListCustomLineItemChargeDetails containing the new charge * details for the custom line item.

*/ inline UpdateCustomLineItemRequest& WithChargeDetails(UpdateCustomLineItemChargeDetails&& value) { SetChargeDetails(std::move(value)); return *this;} inline const CustomLineItemBillingPeriodRange& GetBillingPeriodRange() const{ return m_billingPeriodRange; } inline bool BillingPeriodRangeHasBeenSet() const { return m_billingPeriodRangeHasBeenSet; } inline void SetBillingPeriodRange(const CustomLineItemBillingPeriodRange& value) { m_billingPeriodRangeHasBeenSet = true; m_billingPeriodRange = value; } inline void SetBillingPeriodRange(CustomLineItemBillingPeriodRange&& value) { m_billingPeriodRangeHasBeenSet = true; m_billingPeriodRange = std::move(value); } inline UpdateCustomLineItemRequest& WithBillingPeriodRange(const CustomLineItemBillingPeriodRange& value) { SetBillingPeriodRange(value); return *this;} inline UpdateCustomLineItemRequest& WithBillingPeriodRange(CustomLineItemBillingPeriodRange&& value) { SetBillingPeriodRange(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; UpdateCustomLineItemChargeDetails m_chargeDetails; bool m_chargeDetailsHasBeenSet = false; CustomLineItemBillingPeriodRange m_billingPeriodRange; bool m_billingPeriodRangeHasBeenSet = false; }; } // namespace Model } // namespace BillingConductor } // namespace Aws