AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
UpdatePricingRuleRequest.h
1
6#pragma once
7#include <aws/billingconductor/BillingConductorRequest.h>
8#include <aws/billingconductor/BillingConductor_EXPORTS.h>
9#include <aws/billingconductor/model/PricingRuleType.h>
10#include <aws/billingconductor/model/UpdateTieringInput.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace BillingConductor {
17namespace Model {
18
22 public:
23 AWS_BILLINGCONDUCTOR_API UpdatePricingRuleRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdatePricingRule"; }
30
31 AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetArn() const { return m_arn; }
38 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
39 template <typename ArnT = Aws::String>
40 void SetArn(ArnT&& value) {
41 m_arnHasBeenSet = true;
42 m_arn = std::forward<ArnT>(value);
43 }
44 template <typename ArnT = Aws::String>
46 SetArn(std::forward<ArnT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
92 inline PricingRuleType GetType() const { return m_type; }
93 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
94 inline void SetType(PricingRuleType value) {
95 m_typeHasBeenSet = true;
96 m_type = value;
97 }
99 SetType(value);
100 return *this;
101 }
103
105
109 inline double GetModifierPercentage() const { return m_modifierPercentage; }
110 inline bool ModifierPercentageHasBeenSet() const { return m_modifierPercentageHasBeenSet; }
111 inline void SetModifierPercentage(double value) {
112 m_modifierPercentageHasBeenSet = true;
113 m_modifierPercentage = value;
114 }
117 return *this;
118 }
120
122
125 inline const UpdateTieringInput& GetTiering() const { return m_tiering; }
126 inline bool TieringHasBeenSet() const { return m_tieringHasBeenSet; }
127 template <typename TieringT = UpdateTieringInput>
128 void SetTiering(TieringT&& value) {
129 m_tieringHasBeenSet = true;
130 m_tiering = std::forward<TieringT>(value);
131 }
132 template <typename TieringT = UpdateTieringInput>
134 SetTiering(std::forward<TieringT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_arn;
140
141 Aws::String m_name;
142
143 Aws::String m_description;
144
146
147 double m_modifierPercentage{0.0};
148
149 UpdateTieringInput m_tiering;
150 bool m_arnHasBeenSet = false;
151 bool m_nameHasBeenSet = false;
152 bool m_descriptionHasBeenSet = false;
153 bool m_typeHasBeenSet = false;
154 bool m_modifierPercentageHasBeenSet = false;
155 bool m_tieringHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace BillingConductor
160} // 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