AWS SDK for C++

AWS SDK for C++ Version 1.11.866

Loading...
Searching...
No Matches
ListRegistriesRequest.h
1
6#pragma once
7#include <aws/agent-registry-control/AgentRegistryControlRequest.h>
8#include <aws/agent-registry-control/AgentRegistryControl_EXPORTS.h>
9#include <aws/agent-registry-control/model/RegistryFilter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AgentRegistryControl {
17namespace Model {
18
25 public:
26 AWS_AGENTREGISTRYCONTROL_API ListRegistriesRequest() = 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 "ListRegistries"; }
33
34 AWS_AGENTREGISTRYCONTROL_API Aws::String SerializePayload() const override;
35
37
40 inline int GetMaxResults() const { return m_maxResults; }
41 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
42 inline void SetMaxResults(int value) {
43 m_maxResultsHasBeenSet = true;
44 m_maxResults = value;
45 }
47 SetMaxResults(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetNextToken() const { return m_nextToken; }
57 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
58 template <typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) {
60 m_nextTokenHasBeenSet = true;
61 m_nextToken = std::forward<NextTokenT>(value);
62 }
63 template <typename NextTokenT = Aws::String>
64 ListRegistriesRequest& WithNextToken(NextTokenT&& value) {
65 SetNextToken(std::forward<NextTokenT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Vector<RegistryFilter>& GetFilters() const { return m_filters; }
75 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
76 template <typename FiltersT = Aws::Vector<RegistryFilter>>
77 void SetFilters(FiltersT&& value) {
78 m_filtersHasBeenSet = true;
79 m_filters = std::forward<FiltersT>(value);
80 }
81 template <typename FiltersT = Aws::Vector<RegistryFilter>>
83 SetFilters(std::forward<FiltersT>(value));
84 return *this;
85 }
86 template <typename FiltersT = RegistryFilter>
87 ListRegistriesRequest& AddFilters(FiltersT&& value) {
88 m_filtersHasBeenSet = true;
89 m_filters.emplace_back(std::forward<FiltersT>(value));
90 return *this;
91 }
93 private:
94 int m_maxResults{0};
95
96 Aws::String m_nextToken;
97
99 bool m_maxResultsHasBeenSet = false;
100 bool m_nextTokenHasBeenSet = false;
101 bool m_filtersHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace AgentRegistryControl
106} // namespace Aws
AWS_AGENTREGISTRYCONTROL_API Aws::String SerializePayload() const override
AWS_AGENTREGISTRYCONTROL_API ListRegistriesRequest()=default
ListRegistriesRequest & AddFilters(FiltersT &&value)
virtual const char * GetServiceRequestName() const override
ListRegistriesRequest & WithNextToken(NextTokenT &&value)
ListRegistriesRequest & WithFilters(FiltersT &&value)
const Aws::Vector< RegistryFilter > & GetFilters() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector