AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchGetTaxExemptionsResult.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/taxsettings/TaxSettings_EXPORTS.h>
11#include <aws/taxsettings/model/TaxExemptionDetails.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace TaxSettings {
25namespace Model {
27 public:
28 AWS_TAXSETTINGS_API BatchGetTaxExemptionsResult() = default;
31
33
36 inline const Aws::Vector<Aws::String>& GetFailedAccounts() const { return m_failedAccounts; }
37 template <typename FailedAccountsT = Aws::Vector<Aws::String>>
38 void SetFailedAccounts(FailedAccountsT&& value) {
39 m_failedAccountsHasBeenSet = true;
40 m_failedAccounts = std::forward<FailedAccountsT>(value);
41 }
42 template <typename FailedAccountsT = Aws::Vector<Aws::String>>
44 SetFailedAccounts(std::forward<FailedAccountsT>(value));
45 return *this;
46 }
47 template <typename FailedAccountsT = Aws::String>
49 m_failedAccountsHasBeenSet = true;
50 m_failedAccounts.emplace_back(std::forward<FailedAccountsT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Map<Aws::String, TaxExemptionDetails>& GetTaxExemptionDetailsMap() const { return m_taxExemptionDetailsMap; }
60 template <typename TaxExemptionDetailsMapT = Aws::Map<Aws::String, TaxExemptionDetails>>
61 void SetTaxExemptionDetailsMap(TaxExemptionDetailsMapT&& value) {
62 m_taxExemptionDetailsMapHasBeenSet = true;
63 m_taxExemptionDetailsMap = std::forward<TaxExemptionDetailsMapT>(value);
64 }
65 template <typename TaxExemptionDetailsMapT = Aws::Map<Aws::String, TaxExemptionDetails>>
66 BatchGetTaxExemptionsResult& WithTaxExemptionDetailsMap(TaxExemptionDetailsMapT&& value) {
67 SetTaxExemptionDetailsMap(std::forward<TaxExemptionDetailsMapT>(value));
68 return *this;
69 }
70 template <typename TaxExemptionDetailsMapKeyT = Aws::String, typename TaxExemptionDetailsMapValueT = TaxExemptionDetails>
71 BatchGetTaxExemptionsResult& AddTaxExemptionDetailsMap(TaxExemptionDetailsMapKeyT&& key, TaxExemptionDetailsMapValueT&& value) {
72 m_taxExemptionDetailsMapHasBeenSet = true;
73 m_taxExemptionDetailsMap.emplace(std::forward<TaxExemptionDetailsMapKeyT>(key), std::forward<TaxExemptionDetailsMapValueT>(value));
74 return *this;
75 }
77
79
80 inline const Aws::String& GetRequestId() const { return m_requestId; }
81 template <typename RequestIdT = Aws::String>
82 void SetRequestId(RequestIdT&& value) {
83 m_requestIdHasBeenSet = true;
84 m_requestId = std::forward<RequestIdT>(value);
85 }
86 template <typename RequestIdT = Aws::String>
88 SetRequestId(std::forward<RequestIdT>(value));
89 return *this;
90 }
92 private:
93 Aws::Vector<Aws::String> m_failedAccounts;
94
95 Aws::Map<Aws::String, TaxExemptionDetails> m_taxExemptionDetailsMap;
96
97 Aws::String m_requestId;
98 bool m_failedAccountsHasBeenSet = false;
99 bool m_taxExemptionDetailsMapHasBeenSet = false;
100 bool m_requestIdHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace TaxSettings
105} // 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