AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
BatchGetTaxExemptionsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/taxsettings/TaxSettings_EXPORTS.h>
12#include <aws/taxsettings/model/TaxExemptionDetails.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace TaxSettings {
26namespace Model {
28 public:
29 AWS_TAXSETTINGS_API BatchGetTaxExemptionsResult() = default;
32
34
37 inline const Aws::Vector<Aws::String>& GetFailedAccounts() const { return m_failedAccounts; }
38 template <typename FailedAccountsT = Aws::Vector<Aws::String>>
39 void SetFailedAccounts(FailedAccountsT&& value) {
40 m_failedAccountsHasBeenSet = true;
41 m_failedAccounts = std::forward<FailedAccountsT>(value);
42 }
43 template <typename FailedAccountsT = Aws::Vector<Aws::String>>
45 SetFailedAccounts(std::forward<FailedAccountsT>(value));
46 return *this;
47 }
48 template <typename FailedAccountsT = Aws::String>
50 m_failedAccountsHasBeenSet = true;
51 m_failedAccounts.emplace_back(std::forward<FailedAccountsT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Map<Aws::String, TaxExemptionDetails>& GetTaxExemptionDetailsMap() const { return m_taxExemptionDetailsMap; }
61 template <typename TaxExemptionDetailsMapT = Aws::Map<Aws::String, TaxExemptionDetails>>
62 void SetTaxExemptionDetailsMap(TaxExemptionDetailsMapT&& value) {
63 m_taxExemptionDetailsMapHasBeenSet = true;
64 m_taxExemptionDetailsMap = std::forward<TaxExemptionDetailsMapT>(value);
65 }
66 template <typename TaxExemptionDetailsMapT = Aws::Map<Aws::String, TaxExemptionDetails>>
67 BatchGetTaxExemptionsResult& WithTaxExemptionDetailsMap(TaxExemptionDetailsMapT&& value) {
68 SetTaxExemptionDetailsMap(std::forward<TaxExemptionDetailsMapT>(value));
69 return *this;
70 }
71 template <typename TaxExemptionDetailsMapKeyT = Aws::String, typename TaxExemptionDetailsMapValueT = TaxExemptionDetails>
72 BatchGetTaxExemptionsResult& AddTaxExemptionDetailsMap(TaxExemptionDetailsMapKeyT&& key, TaxExemptionDetailsMapValueT&& value) {
73 m_taxExemptionDetailsMapHasBeenSet = true;
74 m_taxExemptionDetailsMap.emplace(std::forward<TaxExemptionDetailsMapKeyT>(key), std::forward<TaxExemptionDetailsMapValueT>(value));
75 return *this;
76 }
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template <typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) {
84 m_requestIdHasBeenSet = true;
85 m_requestId = std::forward<RequestIdT>(value);
86 }
87 template <typename RequestIdT = Aws::String>
89 SetRequestId(std::forward<RequestIdT>(value));
90 return *this;
91 }
93 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
94
95 private:
96 Aws::Vector<Aws::String> m_failedAccounts;
97
98 Aws::Map<Aws::String, TaxExemptionDetails> m_taxExemptionDetailsMap;
99
100 Aws::String m_requestId;
101 Aws::Http::HttpResponseCode m_HttpResponseCode;
102 bool m_failedAccountsHasBeenSet = false;
103 bool m_taxExemptionDetailsMapHasBeenSet = false;
104 bool m_requestIdHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace TaxSettings
109} // namespace Aws
AWS_TAXSETTINGS_API BatchGetTaxExemptionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetTaxExemptionsResult & WithTaxExemptionDetailsMap(TaxExemptionDetailsMapT &&value)
const Aws::Vector< Aws::String > & GetFailedAccounts() const
BatchGetTaxExemptionsResult & WithRequestId(RequestIdT &&value)
BatchGetTaxExemptionsResult & WithFailedAccounts(FailedAccountsT &&value)
const Aws::Map< Aws::String, TaxExemptionDetails > & GetTaxExemptionDetailsMap() const
AWS_TAXSETTINGS_API BatchGetTaxExemptionsResult()=default
BatchGetTaxExemptionsResult & AddTaxExemptionDetailsMap(TaxExemptionDetailsMapKeyT &&key, TaxExemptionDetailsMapValueT &&value)
BatchGetTaxExemptionsResult & AddFailedAccounts(FailedAccountsT &&value)
void SetTaxExemptionDetailsMap(TaxExemptionDetailsMapT &&value)
AWS_TAXSETTINGS_API BatchGetTaxExemptionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue