AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListEngagementsRequest.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/partnercentral-selling/PartnerCentralSellingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/partnercentral-selling/model/EngagementSort.h>
12#include <utility>
13
14namespace Aws
15{
16namespace PartnerCentralSelling
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PARTNERCENTRALSELLING_API ListEngagementsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListEngagements"; }
33
34 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
35
36 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetCatalog() const { return m_catalog; }
44 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
45 template<typename CatalogT = Aws::String>
46 void SetCatalog(CatalogT&& value) { m_catalogHasBeenSet = true; m_catalog = std::forward<CatalogT>(value); }
47 template<typename CatalogT = Aws::String>
48 ListEngagementsRequest& WithCatalog(CatalogT&& value) { SetCatalog(std::forward<CatalogT>(value)); return *this;}
50
52
57 inline const Aws::Vector<Aws::String>& GetCreatedBy() const { return m_createdBy; }
58 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
59 template<typename CreatedByT = Aws::Vector<Aws::String>>
60 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
61 template<typename CreatedByT = Aws::Vector<Aws::String>>
62 ListEngagementsRequest& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
63 template<typename CreatedByT = Aws::String>
64 ListEngagementsRequest& AddCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy.emplace_back(std::forward<CreatedByT>(value)); return *this; }
66
68
71 inline const Aws::Vector<Aws::String>& GetEngagementIdentifier() const { return m_engagementIdentifier; }
72 inline bool EngagementIdentifierHasBeenSet() const { return m_engagementIdentifierHasBeenSet; }
73 template<typename EngagementIdentifierT = Aws::Vector<Aws::String>>
74 void SetEngagementIdentifier(EngagementIdentifierT&& value) { m_engagementIdentifierHasBeenSet = true; m_engagementIdentifier = std::forward<EngagementIdentifierT>(value); }
75 template<typename EngagementIdentifierT = Aws::Vector<Aws::String>>
76 ListEngagementsRequest& WithEngagementIdentifier(EngagementIdentifierT&& value) { SetEngagementIdentifier(std::forward<EngagementIdentifierT>(value)); return *this;}
77 template<typename EngagementIdentifierT = Aws::String>
78 ListEngagementsRequest& AddEngagementIdentifier(EngagementIdentifierT&& value) { m_engagementIdentifierHasBeenSet = true; m_engagementIdentifier.emplace_back(std::forward<EngagementIdentifierT>(value)); return *this; }
80
82
86 inline const Aws::Vector<Aws::String>& GetExcludeCreatedBy() const { return m_excludeCreatedBy; }
87 inline bool ExcludeCreatedByHasBeenSet() const { return m_excludeCreatedByHasBeenSet; }
88 template<typename ExcludeCreatedByT = Aws::Vector<Aws::String>>
89 void SetExcludeCreatedBy(ExcludeCreatedByT&& value) { m_excludeCreatedByHasBeenSet = true; m_excludeCreatedBy = std::forward<ExcludeCreatedByT>(value); }
90 template<typename ExcludeCreatedByT = Aws::Vector<Aws::String>>
91 ListEngagementsRequest& WithExcludeCreatedBy(ExcludeCreatedByT&& value) { SetExcludeCreatedBy(std::forward<ExcludeCreatedByT>(value)); return *this;}
92 template<typename ExcludeCreatedByT = Aws::String>
93 ListEngagementsRequest& AddExcludeCreatedBy(ExcludeCreatedByT&& value) { m_excludeCreatedByHasBeenSet = true; m_excludeCreatedBy.emplace_back(std::forward<ExcludeCreatedByT>(value)); return *this; }
95
97
100 inline int GetMaxResults() const { return m_maxResults; }
101 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
102 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
103 inline ListEngagementsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
105
107
111 inline const Aws::String& GetNextToken() const { return m_nextToken; }
112 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
113 template<typename NextTokenT = Aws::String>
114 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
115 template<typename NextTokenT = Aws::String>
116 ListEngagementsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
118
120
121 inline const EngagementSort& GetSort() const { return m_sort; }
122 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
123 template<typename SortT = EngagementSort>
124 void SetSort(SortT&& value) { m_sortHasBeenSet = true; m_sort = std::forward<SortT>(value); }
125 template<typename SortT = EngagementSort>
126 ListEngagementsRequest& WithSort(SortT&& value) { SetSort(std::forward<SortT>(value)); return *this;}
128 private:
129
130 Aws::String m_catalog;
131 bool m_catalogHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_createdBy;
134 bool m_createdByHasBeenSet = false;
135
136 Aws::Vector<Aws::String> m_engagementIdentifier;
137 bool m_engagementIdentifierHasBeenSet = false;
138
139 Aws::Vector<Aws::String> m_excludeCreatedBy;
140 bool m_excludeCreatedByHasBeenSet = false;
141
142 int m_maxResults{0};
143 bool m_maxResultsHasBeenSet = false;
144
145 Aws::String m_nextToken;
146 bool m_nextTokenHasBeenSet = false;
147
148 EngagementSort m_sort;
149 bool m_sortHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace PartnerCentralSelling
154} // namespace Aws
AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override
ListEngagementsRequest & AddExcludeCreatedBy(ExcludeCreatedByT &&value)
ListEngagementsRequest & WithExcludeCreatedBy(ExcludeCreatedByT &&value)
ListEngagementsRequest & WithEngagementIdentifier(EngagementIdentifierT &&value)
ListEngagementsRequest & AddEngagementIdentifier(EngagementIdentifierT &&value)
const Aws::Vector< Aws::String > & GetExcludeCreatedBy() const
const Aws::Vector< Aws::String > & GetCreatedBy() const
ListEngagementsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< Aws::String > & GetEngagementIdentifier() const
AWS_PARTNERCENTRALSELLING_API ListEngagementsRequest()=default
ListEngagementsRequest & WithCatalog(CatalogT &&value)
ListEngagementsRequest & AddCreatedBy(CreatedByT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListEngagementsRequest & WithCreatedBy(CreatedByT &&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