AWS SDK for C++

AWS SDK for C++ Version 1.11.711

Loading...
Searching...
No Matches
AmendBenefitApplicationRequest.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/partnercentral-benefits/PartnerCentralBenefitsRequest.h>
10#include <aws/partnercentral-benefits/PartnerCentralBenefits_EXPORTS.h>
11#include <aws/partnercentral-benefits/model/Amendment.h>
12
13#include <utility>
14
15namespace Aws {
16namespace PartnerCentralBenefits {
17namespace Model {
18
22 public:
23 AWS_PARTNERCENTRALBENEFITS_API AmendBenefitApplicationRequest() = 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 "AmendBenefitApplication"; }
30
31 AWS_PARTNERCENTRALBENEFITS_API Aws::String SerializePayload() const override;
32
33 AWS_PARTNERCENTRALBENEFITS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Aws::String& GetCatalog() const { return m_catalog; }
41 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
42 template <typename CatalogT = Aws::String>
43 void SetCatalog(CatalogT&& value) {
44 m_catalogHasBeenSet = true;
45 m_catalog = std::forward<CatalogT>(value);
46 }
47 template <typename CatalogT = Aws::String>
49 SetCatalog(std::forward<CatalogT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetClientToken() const { return m_clientToken; }
60 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
61 template <typename ClientTokenT = Aws::String>
62 void SetClientToken(ClientTokenT&& value) {
63 m_clientTokenHasBeenSet = true;
64 m_clientToken = std::forward<ClientTokenT>(value);
65 }
66 template <typename ClientTokenT = Aws::String>
68 SetClientToken(std::forward<ClientTokenT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetRevision() const { return m_revision; }
79 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
80 template <typename RevisionT = Aws::String>
81 void SetRevision(RevisionT&& value) {
82 m_revisionHasBeenSet = true;
83 m_revision = std::forward<RevisionT>(value);
84 }
85 template <typename RevisionT = Aws::String>
87 SetRevision(std::forward<RevisionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetIdentifier() const { return m_identifier; }
97 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
98 template <typename IdentifierT = Aws::String>
99 void SetIdentifier(IdentifierT&& value) {
100 m_identifierHasBeenSet = true;
101 m_identifier = std::forward<IdentifierT>(value);
102 }
103 template <typename IdentifierT = Aws::String>
105 SetIdentifier(std::forward<IdentifierT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetAmendmentReason() const { return m_amendmentReason; }
116 inline bool AmendmentReasonHasBeenSet() const { return m_amendmentReasonHasBeenSet; }
117 template <typename AmendmentReasonT = Aws::String>
118 void SetAmendmentReason(AmendmentReasonT&& value) {
119 m_amendmentReasonHasBeenSet = true;
120 m_amendmentReason = std::forward<AmendmentReasonT>(value);
121 }
122 template <typename AmendmentReasonT = Aws::String>
124 SetAmendmentReason(std::forward<AmendmentReasonT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<Amendment>& GetAmendments() const { return m_amendments; }
134 inline bool AmendmentsHasBeenSet() const { return m_amendmentsHasBeenSet; }
135 template <typename AmendmentsT = Aws::Vector<Amendment>>
136 void SetAmendments(AmendmentsT&& value) {
137 m_amendmentsHasBeenSet = true;
138 m_amendments = std::forward<AmendmentsT>(value);
139 }
140 template <typename AmendmentsT = Aws::Vector<Amendment>>
142 SetAmendments(std::forward<AmendmentsT>(value));
143 return *this;
144 }
145 template <typename AmendmentsT = Amendment>
147 m_amendmentsHasBeenSet = true;
148 m_amendments.emplace_back(std::forward<AmendmentsT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_catalog;
154
155 Aws::String m_clientToken;
156
157 Aws::String m_revision;
158
159 Aws::String m_identifier;
160
161 Aws::String m_amendmentReason;
162
163 Aws::Vector<Amendment> m_amendments;
164 bool m_catalogHasBeenSet = false;
165 bool m_clientTokenHasBeenSet = false;
166 bool m_revisionHasBeenSet = false;
167 bool m_identifierHasBeenSet = false;
168 bool m_amendmentReasonHasBeenSet = false;
169 bool m_amendmentsHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace PartnerCentralBenefits
174} // namespace Aws
AmendBenefitApplicationRequest & WithClientToken(ClientTokenT &&value)
AmendBenefitApplicationRequest & AddAmendments(AmendmentsT &&value)
AmendBenefitApplicationRequest & WithAmendments(AmendmentsT &&value)
AmendBenefitApplicationRequest & WithAmendmentReason(AmendmentReasonT &&value)
AmendBenefitApplicationRequest & WithIdentifier(IdentifierT &&value)
AWS_PARTNERCENTRALBENEFITS_API Aws::String SerializePayload() const override
AWS_PARTNERCENTRALBENEFITS_API AmendBenefitApplicationRequest()=default
AWS_PARTNERCENTRALBENEFITS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector