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

The name of the pricing plan. The names must be unique to each pricing plan. *

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

The name of the pricing plan. The names must be unique to each pricing plan. *

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

The name of the pricing plan. The names must be unique to each pricing plan. *

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

The name of the pricing plan. The names must be unique to each pricing plan. *

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

The name of the pricing plan. The names must be unique to each pricing plan. *

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

The name of the pricing plan. The names must be unique to each pricing plan. *

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

The name of the pricing plan. The names must be unique to each pricing plan. *

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

The name of the pricing plan. The names must be unique to each pricing plan. *

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

The description of the pricing plan.

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

The description of the pricing plan.

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

The description of the pricing plan.

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

The description of the pricing plan.

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

The description of the pricing plan.

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

The description of the pricing plan.

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

The description of the pricing plan.

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

The description of the pricing plan.

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

A list of Amazon Resource Names (ARNs) that define the pricing plan * parameters.

*/ inline const Aws::Vector& GetPricingRuleArns() const{ return m_pricingRuleArns; } /** *

A list of Amazon Resource Names (ARNs) that define the pricing plan * parameters.

*/ inline bool PricingRuleArnsHasBeenSet() const { return m_pricingRuleArnsHasBeenSet; } /** *

A list of Amazon Resource Names (ARNs) that define the pricing plan * parameters.

*/ inline void SetPricingRuleArns(const Aws::Vector& value) { m_pricingRuleArnsHasBeenSet = true; m_pricingRuleArns = value; } /** *

A list of Amazon Resource Names (ARNs) that define the pricing plan * parameters.

*/ inline void SetPricingRuleArns(Aws::Vector&& value) { m_pricingRuleArnsHasBeenSet = true; m_pricingRuleArns = std::move(value); } /** *

A list of Amazon Resource Names (ARNs) that define the pricing plan * parameters.

*/ inline CreatePricingPlanRequest& WithPricingRuleArns(const Aws::Vector& value) { SetPricingRuleArns(value); return *this;} /** *

A list of Amazon Resource Names (ARNs) that define the pricing plan * parameters.

*/ inline CreatePricingPlanRequest& WithPricingRuleArns(Aws::Vector&& value) { SetPricingRuleArns(std::move(value)); return *this;} /** *

A list of Amazon Resource Names (ARNs) that define the pricing plan * parameters.

*/ inline CreatePricingPlanRequest& AddPricingRuleArns(const Aws::String& value) { m_pricingRuleArnsHasBeenSet = true; m_pricingRuleArns.push_back(value); return *this; } /** *

A list of Amazon Resource Names (ARNs) that define the pricing plan * parameters.

*/ inline CreatePricingPlanRequest& AddPricingRuleArns(Aws::String&& value) { m_pricingRuleArnsHasBeenSet = true; m_pricingRuleArns.push_back(std::move(value)); return *this; } /** *

A list of Amazon Resource Names (ARNs) that define the pricing plan * parameters.

*/ inline CreatePricingPlanRequest& AddPricingRuleArns(const char* value) { m_pricingRuleArnsHasBeenSet = true; m_pricingRuleArns.push_back(value); return *this; } /** *

A map that contains tag keys and tag values that are attached to a pricing * plan.

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

A map that contains tag keys and tag values that are attached to a pricing * plan.

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

A map that contains tag keys and tag values that are attached to a pricing * plan.

*/ 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 pricing * plan.

*/ 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 pricing * plan.

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

A map that contains tag keys and tag values that are attached to a pricing * plan.

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

A map that contains tag keys and tag values that are attached to a pricing * plan.

*/ inline CreatePricingPlanRequest& 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 pricing * plan.

*/ inline CreatePricingPlanRequest& 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 pricing * plan.

*/ inline CreatePricingPlanRequest& 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 pricing * plan.

*/ inline CreatePricingPlanRequest& 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 pricing * plan.

*/ inline CreatePricingPlanRequest& 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 pricing * plan.

*/ inline CreatePricingPlanRequest& 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 pricing * plan.

*/ inline CreatePricingPlanRequest& 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; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_pricingRuleArns; bool m_pricingRuleArnsHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace BillingConductor } // namespace Aws