AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
ContractAccount.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 ContractAccount() = default;
31 AWS_BILLING_API ContractAccount(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 ContractAccount& WithAccountId(AccountIdT&& value) {
48 SetAccountId(std::forward<AccountIdT>(value));
49 return *this;
50 }
52
54
58 inline bool GetIsGdn() const { return m_isGdn; }
59 inline bool IsGdnHasBeenSet() const { return m_isGdnHasBeenSet; }
60 inline void SetIsGdn(bool value) {
61 m_isGdnHasBeenSet = true;
62 m_isGdn = value;
63 }
64 inline ContractAccount& WithIsGdn(bool value) {
65 SetIsGdn(value);
66 return *this;
67 }
69 private:
70 Aws::String m_accountId;
71
72 bool m_isGdn{false};
73 bool m_accountIdHasBeenSet = false;
74 bool m_isGdnHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Billing
79} // namespace Aws
AWS_BILLING_API ContractAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
ContractAccount & WithAccountId(AccountIdT &&value)
const Aws::String & GetAccountId() const
void SetAccountId(AccountIdT &&value)
AWS_BILLING_API ContractAccount()=default
AWS_BILLING_API ContractAccount(Aws::Utils::Json::JsonView jsonValue)
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
ContractAccount & WithIsGdn(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue