AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchAgreementsRequest.h
1
6#pragma once
7#include <aws/marketplace-agreement/AgreementService_EXPORTS.h>
8#include <aws/marketplace-agreement/AgreementServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/marketplace-agreement/model/Sort.h>
12#include <aws/marketplace-agreement/model/Filter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace AgreementService
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_AGREEMENTSERVICE_API SearchAgreementsRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "SearchAgreements"; }
34
35 AWS_AGREEMENTSERVICE_API Aws::String SerializePayload() const override;
36
37 AWS_AGREEMENTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetCatalog() const{ return m_catalog; }
45 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
46 inline void SetCatalog(const Aws::String& value) { m_catalogHasBeenSet = true; m_catalog = value; }
47 inline void SetCatalog(Aws::String&& value) { m_catalogHasBeenSet = true; m_catalog = std::move(value); }
48 inline void SetCatalog(const char* value) { m_catalogHasBeenSet = true; m_catalog.assign(value); }
49 inline SearchAgreementsRequest& WithCatalog(const Aws::String& value) { SetCatalog(value); return *this;}
50 inline SearchAgreementsRequest& WithCatalog(Aws::String&& value) { SetCatalog(std::move(value)); return *this;}
51 inline SearchAgreementsRequest& WithCatalog(const char* value) { SetCatalog(value); return *this;}
53
55
80 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
81 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
82 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
83 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
84 inline SearchAgreementsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
85 inline SearchAgreementsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
86 inline SearchAgreementsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
87 inline SearchAgreementsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
89
91
94 inline int GetMaxResults() const{ return m_maxResults; }
95 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
96 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
97 inline SearchAgreementsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
99
101
104 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
105 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
106 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
107 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
108 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
109 inline SearchAgreementsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
110 inline SearchAgreementsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
111 inline SearchAgreementsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
113
115
119 inline const Sort& GetSort() const{ return m_sort; }
120 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
121 inline void SetSort(const Sort& value) { m_sortHasBeenSet = true; m_sort = value; }
122 inline void SetSort(Sort&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); }
123 inline SearchAgreementsRequest& WithSort(const Sort& value) { SetSort(value); return *this;}
124 inline SearchAgreementsRequest& WithSort(Sort&& value) { SetSort(std::move(value)); return *this;}
126 private:
127
128 Aws::String m_catalog;
129 bool m_catalogHasBeenSet = false;
130
131 Aws::Vector<Filter> m_filters;
132 bool m_filtersHasBeenSet = false;
133
134 int m_maxResults;
135 bool m_maxResultsHasBeenSet = false;
136
137 Aws::String m_nextToken;
138 bool m_nextTokenHasBeenSet = false;
139
140 Sort m_sort;
141 bool m_sortHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace AgreementService
146} // namespace Aws
AWS_AGREEMENTSERVICE_API Aws::String SerializePayload() const override
SearchAgreementsRequest & WithNextToken(const Aws::String &value)
SearchAgreementsRequest & WithSort(const Sort &value)
AWS_AGREEMENTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetFilters(const Aws::Vector< Filter > &value)
SearchAgreementsRequest & AddFilters(Filter &&value)
virtual const char * GetServiceRequestName() const override
SearchAgreementsRequest & WithFilters(const Aws::Vector< Filter > &value)
SearchAgreementsRequest & WithCatalog(const Aws::String &value)
SearchAgreementsRequest & WithCatalog(const char *value)
SearchAgreementsRequest & WithNextToken(Aws::String &&value)
SearchAgreementsRequest & WithCatalog(Aws::String &&value)
SearchAgreementsRequest & WithNextToken(const char *value)
SearchAgreementsRequest & WithFilters(Aws::Vector< Filter > &&value)
SearchAgreementsRequest & AddFilters(const Filter &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