AWS SDK for C++

AWS SDK for C++ Version 1.11.637

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
72 inline const Aws::Vector<Aws::String>& GetExcludeCreatedBy() const { return m_excludeCreatedBy; }
73 inline bool ExcludeCreatedByHasBeenSet() const { return m_excludeCreatedByHasBeenSet; }
74 template<typename ExcludeCreatedByT = Aws::Vector<Aws::String>>
75 void SetExcludeCreatedBy(ExcludeCreatedByT&& value) { m_excludeCreatedByHasBeenSet = true; m_excludeCreatedBy = std::forward<ExcludeCreatedByT>(value); }
76 template<typename ExcludeCreatedByT = Aws::Vector<Aws::String>>
77 ListEngagementsRequest& WithExcludeCreatedBy(ExcludeCreatedByT&& value) { SetExcludeCreatedBy(std::forward<ExcludeCreatedByT>(value)); return *this;}
78 template<typename ExcludeCreatedByT = Aws::String>
79 ListEngagementsRequest& AddExcludeCreatedBy(ExcludeCreatedByT&& value) { m_excludeCreatedByHasBeenSet = true; m_excludeCreatedBy.emplace_back(std::forward<ExcludeCreatedByT>(value)); return *this; }
81
83
84 inline const EngagementSort& GetSort() const { return m_sort; }
85 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
86 template<typename SortT = EngagementSort>
87 void SetSort(SortT&& value) { m_sortHasBeenSet = true; m_sort = std::forward<SortT>(value); }
88 template<typename SortT = EngagementSort>
89 ListEngagementsRequest& WithSort(SortT&& value) { SetSort(std::forward<SortT>(value)); return *this;}
91
93
96 inline int GetMaxResults() const { return m_maxResults; }
97 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
98 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
99 inline ListEngagementsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
101
103
107 inline const Aws::String& GetNextToken() const { return m_nextToken; }
108 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
109 template<typename NextTokenT = Aws::String>
110 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
111 template<typename NextTokenT = Aws::String>
112 ListEngagementsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
114
116
119 inline const Aws::Vector<Aws::String>& GetEngagementIdentifier() const { return m_engagementIdentifier; }
120 inline bool EngagementIdentifierHasBeenSet() const { return m_engagementIdentifierHasBeenSet; }
121 template<typename EngagementIdentifierT = Aws::Vector<Aws::String>>
122 void SetEngagementIdentifier(EngagementIdentifierT&& value) { m_engagementIdentifierHasBeenSet = true; m_engagementIdentifier = std::forward<EngagementIdentifierT>(value); }
123 template<typename EngagementIdentifierT = Aws::Vector<Aws::String>>
124 ListEngagementsRequest& WithEngagementIdentifier(EngagementIdentifierT&& value) { SetEngagementIdentifier(std::forward<EngagementIdentifierT>(value)); return *this;}
125 template<typename EngagementIdentifierT = Aws::String>
126 ListEngagementsRequest& AddEngagementIdentifier(EngagementIdentifierT&& value) { m_engagementIdentifierHasBeenSet = true; m_engagementIdentifier.emplace_back(std::forward<EngagementIdentifierT>(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_excludeCreatedBy;
137 bool m_excludeCreatedByHasBeenSet = false;
138
139 EngagementSort m_sort;
140 bool m_sortHasBeenSet = 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 Aws::Vector<Aws::String> m_engagementIdentifier;
149 bool m_engagementIdentifierHasBeenSet = 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