AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
BatchPutTaxRegistrationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/taxsettings/TaxSettingsRequest.h>
10#include <aws/taxsettings/TaxSettings_EXPORTS.h>
11#include <aws/taxsettings/model/TaxRegistrationEntry.h>
12
13#include <utility>
14
15namespace Aws {
16namespace TaxSettings {
17namespace Model {
18
22 public:
23 AWS_TAXSETTINGS_API BatchPutTaxRegistrationRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "BatchPutTaxRegistration"; }
30
31 AWS_TAXSETTINGS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
38 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
39 template <typename AccountIdsT = Aws::Vector<Aws::String>>
40 void SetAccountIds(AccountIdsT&& value) {
41 m_accountIdsHasBeenSet = true;
42 m_accountIds = std::forward<AccountIdsT>(value);
43 }
44 template <typename AccountIdsT = Aws::Vector<Aws::String>>
46 SetAccountIds(std::forward<AccountIdsT>(value));
47 return *this;
48 }
49 template <typename AccountIdsT = Aws::String>
51 m_accountIdsHasBeenSet = true;
52 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
53 return *this;
54 }
56
58
62 inline const TaxRegistrationEntry& GetTaxRegistrationEntry() const { return m_taxRegistrationEntry; }
63 inline bool TaxRegistrationEntryHasBeenSet() const { return m_taxRegistrationEntryHasBeenSet; }
64 template <typename TaxRegistrationEntryT = TaxRegistrationEntry>
65 void SetTaxRegistrationEntry(TaxRegistrationEntryT&& value) {
66 m_taxRegistrationEntryHasBeenSet = true;
67 m_taxRegistrationEntry = std::forward<TaxRegistrationEntryT>(value);
68 }
69 template <typename TaxRegistrationEntryT = TaxRegistrationEntry>
71 SetTaxRegistrationEntry(std::forward<TaxRegistrationEntryT>(value));
72 return *this;
73 }
75 private:
76 Aws::Vector<Aws::String> m_accountIds;
77 bool m_accountIdsHasBeenSet = false;
78
79 TaxRegistrationEntry m_taxRegistrationEntry;
80 bool m_taxRegistrationEntryHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace TaxSettings
85} // namespace Aws
BatchPutTaxRegistrationRequest & AddAccountIds(AccountIdsT &&value)
BatchPutTaxRegistrationRequest & WithTaxRegistrationEntry(TaxRegistrationEntryT &&value)
AWS_TAXSETTINGS_API BatchPutTaxRegistrationRequest()=default
BatchPutTaxRegistrationRequest & WithAccountIds(AccountIdsT &&value)
AWS_TAXSETTINGS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector