AWS SDK for C++

AWS SDK for C++ Version 1.11.711

Loading...
Searching...
No Matches
ListSitesRequest.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/outposts/OutpostsRequest.h>
10#include <aws/outposts/Outposts_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace Outposts {
19namespace Model {
20
24 public:
25 AWS_OUTPOSTS_API ListSitesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListSites"; }
32
33 AWS_OUTPOSTS_API Aws::String SerializePayload() const override;
34
35 AWS_OUTPOSTS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
39 inline const Aws::String& GetNextToken() const { return m_nextToken; }
40 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
41 template <typename NextTokenT = Aws::String>
42 void SetNextToken(NextTokenT&& value) {
43 m_nextTokenHasBeenSet = true;
44 m_nextToken = std::forward<NextTokenT>(value);
45 }
46 template <typename NextTokenT = Aws::String>
47 ListSitesRequest& WithNextToken(NextTokenT&& value) {
48 SetNextToken(std::forward<NextTokenT>(value));
49 return *this;
50 }
52
54
55 inline int GetMaxResults() const { return m_maxResults; }
56 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
57 inline void SetMaxResults(int value) {
58 m_maxResultsHasBeenSet = true;
59 m_maxResults = value;
60 }
61 inline ListSitesRequest& WithMaxResults(int value) {
62 SetMaxResults(value);
63 return *this;
64 }
66
68
71 inline const Aws::Vector<Aws::String>& GetOperatingAddressCountryCodeFilter() const { return m_operatingAddressCountryCodeFilter; }
72 inline bool OperatingAddressCountryCodeFilterHasBeenSet() const { return m_operatingAddressCountryCodeFilterHasBeenSet; }
73 template <typename OperatingAddressCountryCodeFilterT = Aws::Vector<Aws::String>>
74 void SetOperatingAddressCountryCodeFilter(OperatingAddressCountryCodeFilterT&& value) {
75 m_operatingAddressCountryCodeFilterHasBeenSet = true;
76 m_operatingAddressCountryCodeFilter = std::forward<OperatingAddressCountryCodeFilterT>(value);
77 }
78 template <typename OperatingAddressCountryCodeFilterT = Aws::Vector<Aws::String>>
79 ListSitesRequest& WithOperatingAddressCountryCodeFilter(OperatingAddressCountryCodeFilterT&& value) {
80 SetOperatingAddressCountryCodeFilter(std::forward<OperatingAddressCountryCodeFilterT>(value));
81 return *this;
82 }
83 template <typename OperatingAddressCountryCodeFilterT = Aws::String>
84 ListSitesRequest& AddOperatingAddressCountryCodeFilter(OperatingAddressCountryCodeFilterT&& value) {
85 m_operatingAddressCountryCodeFilterHasBeenSet = true;
86 m_operatingAddressCountryCodeFilter.emplace_back(std::forward<OperatingAddressCountryCodeFilterT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<Aws::String>& GetOperatingAddressStateOrRegionFilter() const { return m_operatingAddressStateOrRegionFilter; }
96 inline bool OperatingAddressStateOrRegionFilterHasBeenSet() const { return m_operatingAddressStateOrRegionFilterHasBeenSet; }
97 template <typename OperatingAddressStateOrRegionFilterT = Aws::Vector<Aws::String>>
98 void SetOperatingAddressStateOrRegionFilter(OperatingAddressStateOrRegionFilterT&& value) {
99 m_operatingAddressStateOrRegionFilterHasBeenSet = true;
100 m_operatingAddressStateOrRegionFilter = std::forward<OperatingAddressStateOrRegionFilterT>(value);
101 }
102 template <typename OperatingAddressStateOrRegionFilterT = Aws::Vector<Aws::String>>
103 ListSitesRequest& WithOperatingAddressStateOrRegionFilter(OperatingAddressStateOrRegionFilterT&& value) {
104 SetOperatingAddressStateOrRegionFilter(std::forward<OperatingAddressStateOrRegionFilterT>(value));
105 return *this;
106 }
107 template <typename OperatingAddressStateOrRegionFilterT = Aws::String>
108 ListSitesRequest& AddOperatingAddressStateOrRegionFilter(OperatingAddressStateOrRegionFilterT&& value) {
109 m_operatingAddressStateOrRegionFilterHasBeenSet = true;
110 m_operatingAddressStateOrRegionFilter.emplace_back(std::forward<OperatingAddressStateOrRegionFilterT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Vector<Aws::String>& GetOperatingAddressCityFilter() const { return m_operatingAddressCityFilter; }
120 inline bool OperatingAddressCityFilterHasBeenSet() const { return m_operatingAddressCityFilterHasBeenSet; }
121 template <typename OperatingAddressCityFilterT = Aws::Vector<Aws::String>>
122 void SetOperatingAddressCityFilter(OperatingAddressCityFilterT&& value) {
123 m_operatingAddressCityFilterHasBeenSet = true;
124 m_operatingAddressCityFilter = std::forward<OperatingAddressCityFilterT>(value);
125 }
126 template <typename OperatingAddressCityFilterT = Aws::Vector<Aws::String>>
127 ListSitesRequest& WithOperatingAddressCityFilter(OperatingAddressCityFilterT&& value) {
128 SetOperatingAddressCityFilter(std::forward<OperatingAddressCityFilterT>(value));
129 return *this;
130 }
131 template <typename OperatingAddressCityFilterT = Aws::String>
132 ListSitesRequest& AddOperatingAddressCityFilter(OperatingAddressCityFilterT&& value) {
133 m_operatingAddressCityFilterHasBeenSet = true;
134 m_operatingAddressCityFilter.emplace_back(std::forward<OperatingAddressCityFilterT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_nextToken;
140
141 int m_maxResults{0};
142
143 Aws::Vector<Aws::String> m_operatingAddressCountryCodeFilter;
144
145 Aws::Vector<Aws::String> m_operatingAddressStateOrRegionFilter;
146
147 Aws::Vector<Aws::String> m_operatingAddressCityFilter;
148 bool m_nextTokenHasBeenSet = false;
149 bool m_maxResultsHasBeenSet = false;
150 bool m_operatingAddressCountryCodeFilterHasBeenSet = false;
151 bool m_operatingAddressStateOrRegionFilterHasBeenSet = false;
152 bool m_operatingAddressCityFilterHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace Outposts
157} // namespace Aws
ListSitesRequest & AddOperatingAddressCityFilter(OperatingAddressCityFilterT &&value)
AWS_OUTPOSTS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetOperatingAddressStateOrRegionFilter() const
void SetOperatingAddressStateOrRegionFilter(OperatingAddressStateOrRegionFilterT &&value)
ListSitesRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
const Aws::String & GetNextToken() const
ListSitesRequest & WithOperatingAddressCountryCodeFilter(OperatingAddressCountryCodeFilterT &&value)
ListSitesRequest & WithMaxResults(int value)
const Aws::Vector< Aws::String > & GetOperatingAddressCityFilter() const
void SetOperatingAddressCountryCodeFilter(OperatingAddressCountryCodeFilterT &&value)
void SetOperatingAddressCityFilter(OperatingAddressCityFilterT &&value)
AWS_OUTPOSTS_API ListSitesRequest()=default
ListSitesRequest & WithOperatingAddressCityFilter(OperatingAddressCityFilterT &&value)
ListSitesRequest & AddOperatingAddressCountryCodeFilter(OperatingAddressCountryCodeFilterT &&value)
ListSitesRequest & AddOperatingAddressStateOrRegionFilter(OperatingAddressStateOrRegionFilterT &&value)
ListSitesRequest & WithOperatingAddressStateOrRegionFilter(OperatingAddressStateOrRegionFilterT &&value)
const Aws::Vector< Aws::String > & GetOperatingAddressCountryCodeFilter() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector