AWS SDK for C++

AWS SDK for C++ Version 1.11.862

Loading...
Searching...
No Matches
AdditionalCharge.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Billing {
20namespace Model {
21
29 public:
30 AWS_BILLING_API AdditionalCharge() = default;
31 AWS_BILLING_API AdditionalCharge(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDescription() const { return m_description; }
40 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
41 template <typename DescriptionT = Aws::String>
42 void SetDescription(DescriptionT&& value) {
43 m_descriptionHasBeenSet = true;
44 m_description = std::forward<DescriptionT>(value);
45 }
46 template <typename DescriptionT = Aws::String>
47 AdditionalCharge& WithDescription(DescriptionT&& value) {
48 SetDescription(std::forward<DescriptionT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAmount() const { return m_amount; }
58 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
59 template <typename AmountT = Aws::String>
60 void SetAmount(AmountT&& value) {
61 m_amountHasBeenSet = true;
62 m_amount = std::forward<AmountT>(value);
63 }
64 template <typename AmountT = Aws::String>
65 AdditionalCharge& WithAmount(AmountT&& value) {
66 SetAmount(std::forward<AmountT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetChargeType() const { return m_chargeType; }
76 inline bool ChargeTypeHasBeenSet() const { return m_chargeTypeHasBeenSet; }
77 template <typename ChargeTypeT = Aws::String>
78 void SetChargeType(ChargeTypeT&& value) {
79 m_chargeTypeHasBeenSet = true;
80 m_chargeType = std::forward<ChargeTypeT>(value);
81 }
82 template <typename ChargeTypeT = Aws::String>
83 AdditionalCharge& WithChargeType(ChargeTypeT&& value) {
84 SetChargeType(std::forward<ChargeTypeT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_description;
90
91 Aws::String m_amount;
92
93 Aws::String m_chargeType;
94 bool m_descriptionHasBeenSet = false;
95 bool m_amountHasBeenSet = false;
96 bool m_chargeTypeHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Billing
101} // namespace Aws
AdditionalCharge & WithAmount(AmountT &&value)
const Aws::String & GetDescription() const
AdditionalCharge & WithDescription(DescriptionT &&value)
AdditionalCharge & WithChargeType(ChargeTypeT &&value)
const Aws::String & GetAmount() const
AWS_BILLING_API AdditionalCharge & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
void SetChargeType(ChargeTypeT &&value)
AWS_BILLING_API AdditionalCharge(Aws::Utils::Json::JsonView jsonValue)
AWS_BILLING_API AdditionalCharge()=default
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetChargeType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue