AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AccountMetaData.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/taxsettings/TaxSettings_EXPORTS.h>
10#include <aws/taxsettings/model/Address.h>
11#include <aws/taxsettings/model/AddressRoleType.h>
12#include <aws/taxsettings/model/Jurisdiction.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace TaxSettings {
24namespace Model {
25
33 public:
34 AWS_TAXSETTINGS_API AccountMetaData() = default;
35 AWS_TAXSETTINGS_API AccountMetaData(Aws::Utils::Json::JsonView jsonValue);
36 AWS_TAXSETTINGS_API AccountMetaData& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TAXSETTINGS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAccountName() const { return m_accountName; }
44 inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
45 template <typename AccountNameT = Aws::String>
46 void SetAccountName(AccountNameT&& value) {
47 m_accountNameHasBeenSet = true;
48 m_accountName = std::forward<AccountNameT>(value);
49 }
50 template <typename AccountNameT = Aws::String>
51 AccountMetaData& WithAccountName(AccountNameT&& value) {
52 SetAccountName(std::forward<AccountNameT>(value));
53 return *this;
54 }
56
58
59 inline const Address& GetAddress() const { return m_address; }
60 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
61 template <typename AddressT = Address>
62 void SetAddress(AddressT&& value) {
63 m_addressHasBeenSet = true;
64 m_address = std::forward<AddressT>(value);
65 }
66 template <typename AddressT = Address>
67 AccountMetaData& WithAddress(AddressT&& value) {
68 SetAddress(std::forward<AddressT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Map<AddressRoleType, Jurisdiction>& GetAddressRoleMap() const { return m_addressRoleMap; }
79 inline bool AddressRoleMapHasBeenSet() const { return m_addressRoleMapHasBeenSet; }
80 template <typename AddressRoleMapT = Aws::Map<AddressRoleType, Jurisdiction>>
81 void SetAddressRoleMap(AddressRoleMapT&& value) {
82 m_addressRoleMapHasBeenSet = true;
83 m_addressRoleMap = std::forward<AddressRoleMapT>(value);
84 }
85 template <typename AddressRoleMapT = Aws::Map<AddressRoleType, Jurisdiction>>
86 AccountMetaData& WithAddressRoleMap(AddressRoleMapT&& value) {
87 SetAddressRoleMap(std::forward<AddressRoleMapT>(value));
88 return *this;
89 }
91 m_addressRoleMapHasBeenSet = true;
92 m_addressRoleMap.emplace(key, value);
93 return *this;
94 }
96
98
101 inline AddressRoleType GetAddressType() const { return m_addressType; }
102 inline bool AddressTypeHasBeenSet() const { return m_addressTypeHasBeenSet; }
103 inline void SetAddressType(AddressRoleType value) {
104 m_addressTypeHasBeenSet = true;
105 m_addressType = value;
106 }
108 SetAddressType(value);
109 return *this;
110 }
112
114
117 inline const Aws::String& GetSeller() const { return m_seller; }
118 inline bool SellerHasBeenSet() const { return m_sellerHasBeenSet; }
119 template <typename SellerT = Aws::String>
120 void SetSeller(SellerT&& value) {
121 m_sellerHasBeenSet = true;
122 m_seller = std::forward<SellerT>(value);
123 }
124 template <typename SellerT = Aws::String>
125 AccountMetaData& WithSeller(SellerT&& value) {
126 SetSeller(std::forward<SellerT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_accountName;
132
133 Address m_address;
134
136
138
139 Aws::String m_seller;
140 bool m_accountNameHasBeenSet = false;
141 bool m_addressHasBeenSet = false;
142 bool m_addressRoleMapHasBeenSet = false;
143 bool m_addressTypeHasBeenSet = false;
144 bool m_sellerHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace TaxSettings
149} // namespace Aws
const Aws::Map< AddressRoleType, Jurisdiction > & GetAddressRoleMap() const
void SetAccountName(AccountNameT &&value)
const Aws::String & GetAccountName() const
AWS_TAXSETTINGS_API Aws::Utils::Json::JsonValue Jsonize() const
AccountMetaData & WithAddressRoleMap(AddressRoleMapT &&value)
AccountMetaData & AddAddressRoleMap(AddressRoleType key, Jurisdiction value)
AWS_TAXSETTINGS_API AccountMetaData & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountMetaData & WithAccountName(AccountNameT &&value)
AWS_TAXSETTINGS_API AccountMetaData()=default
const Aws::String & GetSeller() const
AccountMetaData & WithSeller(SellerT &&value)
AWS_TAXSETTINGS_API AccountMetaData(Aws::Utils::Json::JsonView jsonValue)
void SetAddressRoleMap(AddressRoleMapT &&value)
AccountMetaData & WithAddressType(AddressRoleType value)
AccountMetaData & WithAddress(AddressT &&value)
void SetAddressType(AddressRoleType value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue