/** * 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 CreateCustomLineItemRequest : public BillingConductorRequest { public: AWS_BILLINGCONDUCTOR_API CreateCustomLineItemRequest(); // 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 "CreateCustomLineItem"; } 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 CreateCustomLineItemRequest& 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 CreateCustomLineItemRequest& 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 CreateCustomLineItemRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The name of the custom line item.

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

The name of the custom line item.

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

The name of the custom line item.

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

The name of the custom line item.

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

The name of the custom line item.

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

The name of the custom line item.

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

The name of the custom line item.

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

The name of the custom line item.

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

The description of the custom line item. This is shown on the Bills page in * association with the charge value.

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

The description of the custom line item. This is shown on the Bills page in * association with the charge value.

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

The description of the custom line item. This is shown on the Bills page in * association with the charge value.

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

The description of the custom line item. This is shown on the Bills page in * association with the charge value.

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

The description of the custom line item. This is shown on the Bills page in * association with the charge value.

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

The description of the custom line item. This is shown on the Bills page in * association with the charge value.

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

The description of the custom line item. This is shown on the Bills page in * association with the charge value.

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

The description of the custom line item. This is shown on the Bills page in * association with the charge value.

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

The Amazon Resource Name (ARN) that references the billing group where the * custom line item applies to.

*/ inline const Aws::String& GetBillingGroupArn() const{ return m_billingGroupArn; } /** *

The Amazon Resource Name (ARN) that references the billing group where the * custom line item applies to.

*/ inline bool BillingGroupArnHasBeenSet() const { return m_billingGroupArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) that references the billing group where the * custom line item applies to.

*/ inline void SetBillingGroupArn(const Aws::String& value) { m_billingGroupArnHasBeenSet = true; m_billingGroupArn = value; } /** *

The Amazon Resource Name (ARN) that references the billing group where the * custom line item applies to.

*/ inline void SetBillingGroupArn(Aws::String&& value) { m_billingGroupArnHasBeenSet = true; m_billingGroupArn = std::move(value); } /** *

The Amazon Resource Name (ARN) that references the billing group where the * custom line item applies to.

*/ inline void SetBillingGroupArn(const char* value) { m_billingGroupArnHasBeenSet = true; m_billingGroupArn.assign(value); } /** *

The Amazon Resource Name (ARN) that references the billing group where the * custom line item applies to.

*/ inline CreateCustomLineItemRequest& WithBillingGroupArn(const Aws::String& value) { SetBillingGroupArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that references the billing group where the * custom line item applies to.

*/ inline CreateCustomLineItemRequest& WithBillingGroupArn(Aws::String&& value) { SetBillingGroupArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that references the billing group where the * custom line item applies to.

*/ inline CreateCustomLineItemRequest& WithBillingGroupArn(const char* value) { SetBillingGroupArn(value); return *this;} /** *

A time range for which the custom line item is effective.

*/ inline const CustomLineItemBillingPeriodRange& GetBillingPeriodRange() const{ return m_billingPeriodRange; } /** *

A time range for which the custom line item is effective.

*/ inline bool BillingPeriodRangeHasBeenSet() const { return m_billingPeriodRangeHasBeenSet; } /** *

A time range for which the custom line item is effective.

*/ inline void SetBillingPeriodRange(const CustomLineItemBillingPeriodRange& value) { m_billingPeriodRangeHasBeenSet = true; m_billingPeriodRange = value; } /** *

A time range for which the custom line item is effective.

*/ inline void SetBillingPeriodRange(CustomLineItemBillingPeriodRange&& value) { m_billingPeriodRangeHasBeenSet = true; m_billingPeriodRange = std::move(value); } /** *

A time range for which the custom line item is effective.

*/ inline CreateCustomLineItemRequest& WithBillingPeriodRange(const CustomLineItemBillingPeriodRange& value) { SetBillingPeriodRange(value); return *this;} /** *

A time range for which the custom line item is effective.

*/ inline CreateCustomLineItemRequest& WithBillingPeriodRange(CustomLineItemBillingPeriodRange&& value) { SetBillingPeriodRange(std::move(value)); return *this;} /** *

A map that contains tag keys and tag values that are attached to a custom * line item.

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

A map that contains tag keys and tag values that are attached to a custom * line item.

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

A map that contains tag keys and tag values that are attached to a custom * line item.

*/ 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 custom * line item.

*/ 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 custom * line item.

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

A map that contains tag keys and tag values that are attached to a custom * line item.

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

A map that contains tag keys and tag values that are attached to a custom * line item.

*/ inline CreateCustomLineItemRequest& 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 custom * line item.

*/ inline CreateCustomLineItemRequest& 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 custom * line item.

*/ inline CreateCustomLineItemRequest& 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 custom * line item.

*/ inline CreateCustomLineItemRequest& 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 custom * line item.

*/ inline CreateCustomLineItemRequest& 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 custom * line item.

*/ inline CreateCustomLineItemRequest& 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 custom * line item.

*/ inline CreateCustomLineItemRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A CustomLineItemChargeDetails that describes the charge details * for a custom line item.

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

A CustomLineItemChargeDetails that describes the charge details * for a custom line item.

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

A CustomLineItemChargeDetails that describes the charge details * for a custom line item.

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

A CustomLineItemChargeDetails that describes the charge details * for a custom line item.

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

A CustomLineItemChargeDetails that describes the charge details * for a custom line item.

*/ inline CreateCustomLineItemRequest& WithChargeDetails(const CustomLineItemChargeDetails& value) { SetChargeDetails(value); return *this;} /** *

A CustomLineItemChargeDetails that describes the charge details * for a custom line item.

*/ inline CreateCustomLineItemRequest& WithChargeDetails(CustomLineItemChargeDetails&& value) { SetChargeDetails(std::move(value)); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_billingGroupArn; bool m_billingGroupArnHasBeenSet = false; CustomLineItemBillingPeriodRange m_billingPeriodRange; bool m_billingPeriodRangeHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; CustomLineItemChargeDetails m_chargeDetails; bool m_chargeDetailsHasBeenSet = false; }; } // namespace Model } // namespace BillingConductor } // namespace Aws