AWS SDK for C++

AWS SDK for C++ Version 1.11.710

Loading...
Searching...
No Matches
ListBenefitsRequest.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/BenefitStatus.h>
12#include <aws/partnercentral-benefits/model/FulfillmentType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace PartnerCentralBenefits {
18namespace Model {
19
23 public:
24 AWS_PARTNERCENTRALBENEFITS_API ListBenefitsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListBenefits"; }
31
32 AWS_PARTNERCENTRALBENEFITS_API Aws::String SerializePayload() const override;
33
34 AWS_PARTNERCENTRALBENEFITS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
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>
48 ListBenefitsRequest& WithCatalog(CatalogT&& value) {
49 SetCatalog(std::forward<CatalogT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetPrograms() const { return m_programs; }
59 inline bool ProgramsHasBeenSet() const { return m_programsHasBeenSet; }
60 template <typename ProgramsT = Aws::Vector<Aws::String>>
61 void SetPrograms(ProgramsT&& value) {
62 m_programsHasBeenSet = true;
63 m_programs = std::forward<ProgramsT>(value);
64 }
65 template <typename ProgramsT = Aws::Vector<Aws::String>>
66 ListBenefitsRequest& WithPrograms(ProgramsT&& value) {
67 SetPrograms(std::forward<ProgramsT>(value));
68 return *this;
69 }
70 template <typename ProgramsT = Aws::String>
71 ListBenefitsRequest& AddPrograms(ProgramsT&& value) {
72 m_programsHasBeenSet = true;
73 m_programs.emplace_back(std::forward<ProgramsT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Vector<FulfillmentType>& GetFulfillmentTypes() const { return m_fulfillmentTypes; }
83 inline bool FulfillmentTypesHasBeenSet() const { return m_fulfillmentTypesHasBeenSet; }
84 template <typename FulfillmentTypesT = Aws::Vector<FulfillmentType>>
85 void SetFulfillmentTypes(FulfillmentTypesT&& value) {
86 m_fulfillmentTypesHasBeenSet = true;
87 m_fulfillmentTypes = std::forward<FulfillmentTypesT>(value);
88 }
89 template <typename FulfillmentTypesT = Aws::Vector<FulfillmentType>>
90 ListBenefitsRequest& WithFulfillmentTypes(FulfillmentTypesT&& value) {
91 SetFulfillmentTypes(std::forward<FulfillmentTypesT>(value));
92 return *this;
93 }
95 m_fulfillmentTypesHasBeenSet = true;
96 m_fulfillmentTypes.push_back(value);
97 return *this;
98 }
100
102
105 inline const Aws::Vector<BenefitStatus>& GetStatus() const { return m_status; }
106 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 template <typename StatusT = Aws::Vector<BenefitStatus>>
108 void SetStatus(StatusT&& value) {
109 m_statusHasBeenSet = true;
110 m_status = std::forward<StatusT>(value);
111 }
112 template <typename StatusT = Aws::Vector<BenefitStatus>>
113 ListBenefitsRequest& WithStatus(StatusT&& value) {
114 SetStatus(std::forward<StatusT>(value));
115 return *this;
116 }
118 m_statusHasBeenSet = true;
119 m_status.push_back(value);
120 return *this;
121 }
123
125
128 inline int GetMaxResults() const { return m_maxResults; }
129 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
130 inline void SetMaxResults(int value) {
131 m_maxResultsHasBeenSet = true;
132 m_maxResults = value;
133 }
135 SetMaxResults(value);
136 return *this;
137 }
139
141
145 inline const Aws::String& GetNextToken() const { return m_nextToken; }
146 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
147 template <typename NextTokenT = Aws::String>
148 void SetNextToken(NextTokenT&& value) {
149 m_nextTokenHasBeenSet = true;
150 m_nextToken = std::forward<NextTokenT>(value);
151 }
152 template <typename NextTokenT = Aws::String>
153 ListBenefitsRequest& WithNextToken(NextTokenT&& value) {
154 SetNextToken(std::forward<NextTokenT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_catalog;
160
161 Aws::Vector<Aws::String> m_programs;
162
163 Aws::Vector<FulfillmentType> m_fulfillmentTypes;
164
166
167 int m_maxResults{0};
168
169 Aws::String m_nextToken;
170 bool m_catalogHasBeenSet = false;
171 bool m_programsHasBeenSet = false;
172 bool m_fulfillmentTypesHasBeenSet = false;
173 bool m_statusHasBeenSet = false;
174 bool m_maxResultsHasBeenSet = false;
175 bool m_nextTokenHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace PartnerCentralBenefits
180} // namespace Aws
ListBenefitsRequest & AddStatus(BenefitStatus value)
ListBenefitsRequest & WithPrograms(ProgramsT &&value)
ListBenefitsRequest & AddPrograms(ProgramsT &&value)
virtual const char * GetServiceRequestName() const override
ListBenefitsRequest & AddFulfillmentTypes(FulfillmentType value)
const Aws::Vector< BenefitStatus > & GetStatus() const
AWS_PARTNERCENTRALBENEFITS_API ListBenefitsRequest()=default
const Aws::Vector< Aws::String > & GetPrograms() const
AWS_PARTNERCENTRALBENEFITS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PARTNERCENTRALBENEFITS_API Aws::String SerializePayload() const override
ListBenefitsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< FulfillmentType > & GetFulfillmentTypes() const
ListBenefitsRequest & WithFulfillmentTypes(FulfillmentTypesT &&value)
ListBenefitsRequest & WithCatalog(CatalogT &&value)
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