/** * 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 UpdatePricingRuleRequest : public BillingConductorRequest { public: AWS_BILLINGCONDUCTOR_API UpdatePricingRuleRequest(); // 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 "UpdatePricingRule"; } AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override; /** *

The Amazon Resource Name (ARN) of the pricing rule to update.

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

The Amazon Resource Name (ARN) of the pricing rule to update.

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

The Amazon Resource Name (ARN) of the pricing rule to update.

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

The Amazon Resource Name (ARN) of the pricing rule to update.

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

The Amazon Resource Name (ARN) of the pricing rule to update.

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

The Amazon Resource Name (ARN) of the pricing rule to update.

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

The Amazon Resource Name (ARN) of the pricing rule to update.

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

The Amazon Resource Name (ARN) of the pricing rule to update.

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

The new name of the pricing rule. The name must be unique to each pricing * rule.

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

The new name of the pricing rule. The name must be unique to each pricing * rule.

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

The new name of the pricing rule. The name must be unique to each pricing * rule.

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

The new name of the pricing rule. The name must be unique to each pricing * rule.

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

The new name of the pricing rule. The name must be unique to each pricing * rule.

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

The new name of the pricing rule. The name must be unique to each pricing * rule.

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

The new name of the pricing rule. The name must be unique to each pricing * rule.

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

The new name of the pricing rule. The name must be unique to each pricing * rule.

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

The new description for the pricing rule.

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

The new description for the pricing rule.

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

The new description for the pricing rule.

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

The new description for the pricing rule.

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

The new description for the pricing rule.

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

The new description for the pricing rule.

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

The new description for the pricing rule.

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

The new description for the pricing rule.

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

The new pricing rule type.

*/ inline const PricingRuleType& GetType() const{ return m_type; } /** *

The new pricing rule type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The new pricing rule type.

*/ inline void SetType(const PricingRuleType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The new pricing rule type.

*/ inline void SetType(PricingRuleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The new pricing rule type.

*/ inline UpdatePricingRuleRequest& WithType(const PricingRuleType& value) { SetType(value); return *this;} /** *

The new pricing rule type.

*/ inline UpdatePricingRuleRequest& WithType(PricingRuleType&& value) { SetType(std::move(value)); return *this;} /** *

The new modifier to show pricing plan rates as a percentage.

*/ inline double GetModifierPercentage() const{ return m_modifierPercentage; } /** *

The new modifier to show pricing plan rates as a percentage.

*/ inline bool ModifierPercentageHasBeenSet() const { return m_modifierPercentageHasBeenSet; } /** *

The new modifier to show pricing plan rates as a percentage.

*/ inline void SetModifierPercentage(double value) { m_modifierPercentageHasBeenSet = true; m_modifierPercentage = value; } /** *

The new modifier to show pricing plan rates as a percentage.

*/ inline UpdatePricingRuleRequest& WithModifierPercentage(double value) { SetModifierPercentage(value); return *this;} /** *

The set of tiering configurations for the pricing rule.

*/ inline const UpdateTieringInput& GetTiering() const{ return m_tiering; } /** *

The set of tiering configurations for the pricing rule.

*/ inline bool TieringHasBeenSet() const { return m_tieringHasBeenSet; } /** *

The set of tiering configurations for the pricing rule.

*/ inline void SetTiering(const UpdateTieringInput& value) { m_tieringHasBeenSet = true; m_tiering = value; } /** *

The set of tiering configurations for the pricing rule.

*/ inline void SetTiering(UpdateTieringInput&& value) { m_tieringHasBeenSet = true; m_tiering = std::move(value); } /** *

The set of tiering configurations for the pricing rule.

*/ inline UpdatePricingRuleRequest& WithTiering(const UpdateTieringInput& value) { SetTiering(value); return *this;} /** *

The set of tiering configurations for the pricing rule.

*/ inline UpdatePricingRuleRequest& WithTiering(UpdateTieringInput&& value) { SetTiering(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; PricingRuleType m_type; bool m_typeHasBeenSet = false; double m_modifierPercentage; bool m_modifierPercentageHasBeenSet = false; UpdateTieringInput m_tiering; bool m_tieringHasBeenSet = false; }; } // namespace Model } // namespace BillingConductor } // namespace Aws