AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
SplitPortion.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
28 public:
29 AWS_BILLING_API SplitPortion() = default;
30 AWS_BILLING_API SplitPortion(Aws::Utils::Json::JsonView jsonValue);
32 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
40 inline const Aws::String& GetAmount() const { return m_amount; }
41 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
42 template <typename AmountT = Aws::String>
43 void SetAmount(AmountT&& value) {
44 m_amountHasBeenSet = true;
45 m_amount = std::forward<AmountT>(value);
46 }
47 template <typename AmountT = Aws::String>
48 SplitPortion& WithAmount(AmountT&& value) {
49 SetAmount(std::forward<AmountT>(value));
50 return *this;
51 }
53
55
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
71 SplitPortion& WithDescription(DescriptionT&& value) {
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_amount;
78
79 Aws::String m_description;
80 bool m_amountHasBeenSet = false;
81 bool m_descriptionHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace Billing
86} // namespace Aws
AWS_BILLING_API SplitPortion()=default
void SetAmount(AmountT &&value)
AWS_BILLING_API SplitPortion(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAmount() const
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
SplitPortion & WithAmount(AmountT &&value)
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
AWS_BILLING_API SplitPortion & operator=(Aws::Utils::Json::JsonView jsonValue)
SplitPortion & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue