AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ChildCredit.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 ChildCredit() = default;
30 AWS_BILLING_API ChildCredit(Aws::Utils::Json::JsonView jsonValue);
32 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetCreditId() const { return m_creditId; }
39 inline bool CreditIdHasBeenSet() const { return m_creditIdHasBeenSet; }
40 template <typename CreditIdT = Aws::String>
41 void SetCreditId(CreditIdT&& value) {
42 m_creditIdHasBeenSet = true;
43 m_creditId = std::forward<CreditIdT>(value);
44 }
45 template <typename CreditIdT = Aws::String>
46 ChildCredit& WithCreditId(CreditIdT&& value) {
47 SetCreditId(std::forward<CreditIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetAmount() const { return m_amount; }
57 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
58 template <typename AmountT = Aws::String>
59 void SetAmount(AmountT&& value) {
60 m_amountHasBeenSet = true;
61 m_amount = std::forward<AmountT>(value);
62 }
63 template <typename AmountT = Aws::String>
64 ChildCredit& WithAmount(AmountT&& value) {
65 SetAmount(std::forward<AmountT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_creditId;
71
72 Aws::String m_amount;
73 bool m_creditIdHasBeenSet = false;
74 bool m_amountHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Billing
79} // namespace Aws
ChildCredit & WithCreditId(CreditIdT &&value)
Definition ChildCredit.h:46
ChildCredit & WithAmount(AmountT &&value)
Definition ChildCredit.h:64
void SetCreditId(CreditIdT &&value)
Definition ChildCredit.h:41
const Aws::String & GetCreditId() const
Definition ChildCredit.h:38
AWS_BILLING_API ChildCredit(Aws::Utils::Json::JsonView jsonValue)
AWS_BILLING_API ChildCredit()=default
const Aws::String & GetAmount() const
Definition ChildCredit.h:56
void SetAmount(AmountT &&value)
Definition ChildCredit.h:59
AWS_BILLING_API ChildCredit & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue