AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
BillingPreferenceSummary.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/billing/model/BillingFeature.h>
9#include <aws/billing/model/BillingPeriod.h>
10#include <aws/billing/model/PreferenceValue.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Billing {
23namespace Model {
24
32 public:
33 AWS_BILLING_API BillingPreferenceSummary() = default;
36 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline BillingFeature GetFeature() const { return m_feature; }
43 inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; }
44 inline void SetFeature(BillingFeature value) {
45 m_featureHasBeenSet = true;
46 m_feature = value;
47 }
49 SetFeature(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetKey() const { return m_key; }
59 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
60 template <typename KeyT = Aws::String>
61 void SetKey(KeyT&& value) {
62 m_keyHasBeenSet = true;
63 m_key = std::forward<KeyT>(value);
64 }
65 template <typename KeyT = Aws::String>
67 SetKey(std::forward<KeyT>(value));
68 return *this;
69 }
71
73
77 inline PreferenceValue GetValue() const { return m_value; }
78 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
79 inline void SetValue(PreferenceValue value) {
80 m_valueHasBeenSet = true;
81 m_value = value;
82 }
84 SetValue(value);
85 return *this;
86 }
88
90
94 inline const Aws::String& GetAccountName() const { return m_accountName; }
95 inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
96 template <typename AccountNameT = Aws::String>
97 void SetAccountName(AccountNameT&& value) {
98 m_accountNameHasBeenSet = true;
99 m_accountName = std::forward<AccountNameT>(value);
100 }
101 template <typename AccountNameT = Aws::String>
103 SetAccountName(std::forward<AccountNameT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetAccountId() const { return m_accountId; }
114 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
115 template <typename AccountIdT = Aws::String>
116 void SetAccountId(AccountIdT&& value) {
117 m_accountIdHasBeenSet = true;
118 m_accountId = std::forward<AccountIdT>(value);
119 }
120 template <typename AccountIdT = Aws::String>
122 SetAccountId(std::forward<AccountIdT>(value));
123 return *this;
124 }
126
128
133 inline const BillingPeriod& GetBillingPeriod() const { return m_billingPeriod; }
134 inline bool BillingPeriodHasBeenSet() const { return m_billingPeriodHasBeenSet; }
135 template <typename BillingPeriodT = BillingPeriod>
136 void SetBillingPeriod(BillingPeriodT&& value) {
137 m_billingPeriodHasBeenSet = true;
138 m_billingPeriod = std::forward<BillingPeriodT>(value);
139 }
140 template <typename BillingPeriodT = BillingPeriod>
142 SetBillingPeriod(std::forward<BillingPeriodT>(value));
143 return *this;
144 }
146 private:
148
149 Aws::String m_key;
150
152
153 Aws::String m_accountName;
154
155 Aws::String m_accountId;
156
157 BillingPeriod m_billingPeriod;
158 bool m_featureHasBeenSet = false;
159 bool m_keyHasBeenSet = false;
160 bool m_valueHasBeenSet = false;
161 bool m_accountNameHasBeenSet = false;
162 bool m_accountIdHasBeenSet = false;
163 bool m_billingPeriodHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace Billing
168} // namespace Aws
BillingPreferenceSummary & WithAccountName(AccountNameT &&value)
AWS_BILLING_API BillingPreferenceSummary()=default
BillingPreferenceSummary & WithKey(KeyT &&value)
BillingPreferenceSummary & WithAccountId(AccountIdT &&value)
AWS_BILLING_API BillingPreferenceSummary(Aws::Utils::Json::JsonView jsonValue)
BillingPreferenceSummary & WithFeature(BillingFeature value)
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
BillingPreferenceSummary & WithValue(PreferenceValue value)
AWS_BILLING_API BillingPreferenceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
BillingPreferenceSummary & WithBillingPeriod(BillingPeriodT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue