AWS SDK for C++

AWS SDK for C++ Version 1.11.829

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
61 inline const Aws::String& GetSeller() const { return m_seller; }
62 inline bool SellerHasBeenSet() const { return m_sellerHasBeenSet; }
63 template <typename SellerT = Aws::String>
64 void SetSeller(SellerT&& value) {
65 m_sellerHasBeenSet = true;
66 m_seller = std::forward<SellerT>(value);
67 }
68 template <typename SellerT = Aws::String>
69 AccountMetaData& WithSeller(SellerT&& value) {
70 SetSeller(std::forward<SellerT>(value));
71 return *this;
72 }
74
76
77 inline const Address& GetAddress() const { return m_address; }
78 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
79 template <typename AddressT = Address>
80 void SetAddress(AddressT&& value) {
81 m_addressHasBeenSet = true;
82 m_address = std::forward<AddressT>(value);
83 }
84 template <typename AddressT = Address>
85 AccountMetaData& WithAddress(AddressT&& value) {
86 SetAddress(std::forward<AddressT>(value));
87 return *this;
88 }
90
92
95 inline AddressRoleType GetAddressType() const { return m_addressType; }
96 inline bool AddressTypeHasBeenSet() const { return m_addressTypeHasBeenSet; }
97 inline void SetAddressType(AddressRoleType value) {
98 m_addressTypeHasBeenSet = true;
99 m_addressType = value;
100 }
102 SetAddressType(value);
103 return *this;
104 }
106
108
112 inline const Aws::Map<AddressRoleType, Jurisdiction>& GetAddressRoleMap() const { return m_addressRoleMap; }
113 inline bool AddressRoleMapHasBeenSet() const { return m_addressRoleMapHasBeenSet; }
114 template <typename AddressRoleMapT = Aws::Map<AddressRoleType, Jurisdiction>>
115 void SetAddressRoleMap(AddressRoleMapT&& value) {
116 m_addressRoleMapHasBeenSet = true;
117 m_addressRoleMap = std::forward<AddressRoleMapT>(value);
118 }
119 template <typename AddressRoleMapT = Aws::Map<AddressRoleType, Jurisdiction>>
120 AccountMetaData& WithAddressRoleMap(AddressRoleMapT&& value) {
121 SetAddressRoleMap(std::forward<AddressRoleMapT>(value));
122 return *this;
123 }
125 m_addressRoleMapHasBeenSet = true;
126 m_addressRoleMap.emplace(key, value);
127 return *this;
128 }
130 private:
131 Aws::String m_accountName;
132
133 Aws::String m_seller;
134
135 Address m_address;
136
138
140 bool m_accountNameHasBeenSet = false;
141 bool m_sellerHasBeenSet = false;
142 bool m_addressHasBeenSet = false;
143 bool m_addressTypeHasBeenSet = false;
144 bool m_addressRoleMapHasBeenSet = 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