AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
ChargeAccount.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 ChargeAccount() = default;
31 AWS_BILLING_API ChargeAccount(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAccountId() const { return m_accountId; }
40 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
41 template <typename AccountIdT = Aws::String>
42 void SetAccountId(AccountIdT&& value) {
43 m_accountIdHasBeenSet = true;
44 m_accountId = std::forward<AccountIdT>(value);
45 }
46 template <typename AccountIdT = Aws::String>
47 ChargeAccount& WithAccountId(AccountIdT&& value) {
48 SetAccountId(std::forward<AccountIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetChargePercentage() const { return m_chargePercentage; }
59 inline bool ChargePercentageHasBeenSet() const { return m_chargePercentageHasBeenSet; }
60 template <typename ChargePercentageT = Aws::String>
61 void SetChargePercentage(ChargePercentageT&& value) {
62 m_chargePercentageHasBeenSet = true;
63 m_chargePercentage = std::forward<ChargePercentageT>(value);
64 }
65 template <typename ChargePercentageT = Aws::String>
66 ChargeAccount& WithChargePercentage(ChargePercentageT&& value) {
67 SetChargePercentage(std::forward<ChargePercentageT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_accountId;
73
74 Aws::String m_chargePercentage;
75 bool m_accountIdHasBeenSet = false;
76 bool m_chargePercentageHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Billing
81} // namespace Aws
ChargeAccount & WithChargePercentage(ChargePercentageT &&value)
ChargeAccount & WithAccountId(AccountIdT &&value)
AWS_BILLING_API ChargeAccount()=default
const Aws::String & GetChargePercentage() const
const Aws::String & GetAccountId() const
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetChargePercentage(ChargePercentageT &&value)
AWS_BILLING_API ChargeAccount(Aws::Utils::Json::JsonView jsonValue)
AWS_BILLING_API ChargeAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAccountId(AccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue