AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
44 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
45 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
46 inline UpdatePricingRuleRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
47 inline UpdatePricingRuleRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
48 inline UpdatePricingRuleRequest& WithArn(const char* value) { SetArn(value); return *this;}
50
52
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 inline UpdatePricingRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
62 inline UpdatePricingRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
63 inline UpdatePricingRuleRequest& WithName(const char* value) { SetName(value); return *this;}
65
67
70 inline const Aws::String& GetDescription() const{ return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
73 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
74 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
75 inline UpdatePricingRuleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
76 inline UpdatePricingRuleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 inline UpdatePricingRuleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
79
81
84 inline const PricingRuleType& GetType() const{ return m_type; }
85 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
86 inline void SetType(const PricingRuleType& value) { m_typeHasBeenSet = true; m_type = value; }
87 inline void SetType(PricingRuleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
88 inline UpdatePricingRuleRequest& WithType(const PricingRuleType& value) { SetType(value); return *this;}
89 inline UpdatePricingRuleRequest& WithType(PricingRuleType&& value) { SetType(std::move(value)); return *this;}
91
93
96 inline double GetModifierPercentage() const{ return m_modifierPercentage; }
97 inline bool ModifierPercentageHasBeenSet() const { return m_modifierPercentageHasBeenSet; }
98 inline void SetModifierPercentage(double value) { m_modifierPercentageHasBeenSet = true; m_modifierPercentage = value; }
99 inline UpdatePricingRuleRequest& WithModifierPercentage(double value) { SetModifierPercentage(value); return *this;}
101
103
106 inline const UpdateTieringInput& GetTiering() const{ return m_tiering; }
107 inline bool TieringHasBeenSet() const { return m_tieringHasBeenSet; }
108 inline void SetTiering(const UpdateTieringInput& value) { m_tieringHasBeenSet = true; m_tiering = value; }
109 inline void SetTiering(UpdateTieringInput&& value) { m_tieringHasBeenSet = true; m_tiering = std::move(value); }
110 inline UpdatePricingRuleRequest& WithTiering(const UpdateTieringInput& value) { SetTiering(value); return *this;}
111 inline UpdatePricingRuleRequest& WithTiering(UpdateTieringInput&& value) { SetTiering(std::move(value)); return *this;}
113 private:
114
115 Aws::String m_arn;
116 bool m_arnHasBeenSet = false;
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::String m_description;
122 bool m_descriptionHasBeenSet = false;
123
124 PricingRuleType m_type;
125 bool m_typeHasBeenSet = false;
126
127 double m_modifierPercentage;
128 bool m_modifierPercentageHasBeenSet = false;
129
130 UpdateTieringInput m_tiering;
131 bool m_tieringHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace BillingConductor
136} // namespace Aws
UpdatePricingRuleRequest & WithArn(const char *value)
UpdatePricingRuleRequest & WithName(const char *value)
UpdatePricingRuleRequest & WithArn(const Aws::String &value)
UpdatePricingRuleRequest & WithType(PricingRuleType &&value)
UpdatePricingRuleRequest & WithArn(Aws::String &&value)
UpdatePricingRuleRequest & WithName(const Aws::String &value)
UpdatePricingRuleRequest & WithDescription(const char *value)
UpdatePricingRuleRequest & WithDescription(const Aws::String &value)
UpdatePricingRuleRequest & WithModifierPercentage(double value)
UpdatePricingRuleRequest & WithName(Aws::String &&value)
UpdatePricingRuleRequest & WithDescription(Aws::String &&value)
UpdatePricingRuleRequest & WithTiering(const UpdateTieringInput &value)
UpdatePricingRuleRequest & WithType(const PricingRuleType &value)
UpdatePricingRuleRequest & WithTiering(UpdateTieringInput &&value)
AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String