AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdatePricingRuleRequest.h
1
6#pragma once
7#include <aws/billingconductor/BillingConductor_EXPORTS.h>
8#include <aws/billingconductor/BillingConductorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/billingconductor/model/PricingRuleType.h>
11#include <aws/billingconductor/model/UpdateTieringInput.h>
12#include <utility>
13
14namespace Aws
15{
16namespace BillingConductor
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BILLINGCONDUCTOR_API UpdatePricingRuleRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdatePricingRule"; }
33
34 AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template<typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
45 template<typename ArnT = Aws::String>
46 UpdatePricingRuleRequest& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
48
50
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 UpdatePricingRuleRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
61
63
66 inline const Aws::String& GetDescription() const { return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 template<typename DescriptionT = Aws::String>
69 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
70 template<typename DescriptionT = Aws::String>
71 UpdatePricingRuleRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
73
75
78 inline PricingRuleType GetType() const { return m_type; }
79 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
80 inline void SetType(PricingRuleType value) { m_typeHasBeenSet = true; m_type = value; }
81 inline UpdatePricingRuleRequest& WithType(PricingRuleType value) { SetType(value); return *this;}
83
85
88 inline double GetModifierPercentage() const { return m_modifierPercentage; }
89 inline bool ModifierPercentageHasBeenSet() const { return m_modifierPercentageHasBeenSet; }
90 inline void SetModifierPercentage(double value) { m_modifierPercentageHasBeenSet = true; m_modifierPercentage = value; }
91 inline UpdatePricingRuleRequest& WithModifierPercentage(double value) { SetModifierPercentage(value); return *this;}
93
95
98 inline const UpdateTieringInput& GetTiering() const { return m_tiering; }
99 inline bool TieringHasBeenSet() const { return m_tieringHasBeenSet; }
100 template<typename TieringT = UpdateTieringInput>
101 void SetTiering(TieringT&& value) { m_tieringHasBeenSet = true; m_tiering = std::forward<TieringT>(value); }
102 template<typename TieringT = UpdateTieringInput>
103 UpdatePricingRuleRequest& WithTiering(TieringT&& value) { SetTiering(std::forward<TieringT>(value)); return *this;}
105 private:
106
107 Aws::String m_arn;
108 bool m_arnHasBeenSet = false;
109
110 Aws::String m_name;
111 bool m_nameHasBeenSet = false;
112
113 Aws::String m_description;
114 bool m_descriptionHasBeenSet = false;
115
117 bool m_typeHasBeenSet = false;
118
119 double m_modifierPercentage{0.0};
120 bool m_modifierPercentageHasBeenSet = false;
121
122 UpdateTieringInput m_tiering;
123 bool m_tieringHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace BillingConductor
128} // namespace Aws
UpdatePricingRuleRequest & WithTiering(TieringT &&value)
UpdatePricingRuleRequest & WithType(PricingRuleType value)
UpdatePricingRuleRequest & WithDescription(DescriptionT &&value)
UpdatePricingRuleRequest & WithModifierPercentage(double value)
AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override
AWS_BILLINGCONDUCTOR_API UpdatePricingRuleRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String