AWS SDK for C++  1.9.153
AWS SDK for C++
ListLocationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace DataSync
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ListLocations"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline int GetMaxResults() const{ return m_maxResults; }
46 
50  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
51 
55  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
56 
60  inline ListLocationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
61 
62 
67  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
68 
73  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
74 
79  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
80 
85  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
86 
91  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
92 
97  inline ListLocationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
98 
103  inline ListLocationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
104 
109  inline ListLocationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
110 
111 
118  inline const Aws::Vector<LocationFilter>& GetFilters() const{ return m_filters; }
119 
126  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
127 
134  inline void SetFilters(const Aws::Vector<LocationFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
135 
142  inline void SetFilters(Aws::Vector<LocationFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
143 
150  inline ListLocationsRequest& WithFilters(const Aws::Vector<LocationFilter>& value) { SetFilters(value); return *this;}
151 
158  inline ListLocationsRequest& WithFilters(Aws::Vector<LocationFilter>&& value) { SetFilters(std::move(value)); return *this;}
159 
166  inline ListLocationsRequest& AddFilters(const LocationFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
167 
174  inline ListLocationsRequest& AddFilters(LocationFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
175 
176  private:
177 
178  int m_maxResults;
179  bool m_maxResultsHasBeenSet;
180 
181  Aws::String m_nextToken;
182  bool m_nextTokenHasBeenSet;
183 
184  Aws::Vector<LocationFilter> m_filters;
185  bool m_filtersHasBeenSet;
186  };
187 
188 } // namespace Model
189 } // namespace DataSync
190 } // namespace Aws
Aws::DataSync::Model::ListLocationsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataSync::Model::ListLocationsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListLocationsRequest.h:67
Aws::DataSync::Model::ListLocationsRequest::WithNextToken
ListLocationsRequest & WithNextToken(const char *value)
Definition: ListLocationsRequest.h:109
Aws::DataSync::Model::ListLocationsRequest::SetFilters
void SetFilters(Aws::Vector< LocationFilter > &&value)
Definition: ListLocationsRequest.h:142
Aws::DataSync::Model::ListLocationsRequest::WithFilters
ListLocationsRequest & WithFilters(Aws::Vector< LocationFilter > &&value)
Definition: ListLocationsRequest.h:158
Aws::DataSync::Model::ListLocationsRequest::GetFilters
const Aws::Vector< LocationFilter > & GetFilters() const
Definition: ListLocationsRequest.h:118
DataSyncRequest.h
LocationFilter.h
Aws::DataSync::Model::ListLocationsRequest::SetFilters
void SetFilters(const Aws::Vector< LocationFilter > &value)
Definition: ListLocationsRequest.h:134
Aws::DataSync::Model::ListLocationsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListLocationsRequest.h:79
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DataSync::Model::ListLocationsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListLocationsRequest.h:91
Aws::DataSync::Model::ListLocationsRequest
Definition: ListLocationsRequest.h:27
AWSVector.h
Aws::DataSync::Model::ListLocationsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListLocationsRequest.h:45
Aws::DataSync::Model::ListLocationsRequest::WithNextToken
ListLocationsRequest & WithNextToken(const Aws::String &value)
Definition: ListLocationsRequest.h:97
Aws::DataSync::Model::ListLocationsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListLocationsRequest.h:126
Aws::DataSync::Model::ListLocationsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListLocationsRequest.h:55
Aws::DataSync::Model::ListLocationsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListLocationsRequest.h:73
Aws::DataSync::Model::ListLocationsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListLocationsRequest.h:50
Aws::DataSync::Model::ListLocationsRequest::WithNextToken
ListLocationsRequest & WithNextToken(Aws::String &&value)
Definition: ListLocationsRequest.h:103
Aws::DataSync::Model::ListLocationsRequest::AddFilters
ListLocationsRequest & AddFilters(LocationFilter &&value)
Definition: ListLocationsRequest.h:174
AWSString.h
Aws::DataSync::Model::ListLocationsRequest::AddFilters
ListLocationsRequest & AddFilters(const LocationFilter &value)
Definition: ListLocationsRequest.h:166
DataSync_EXPORTS.h
Aws::DataSync::Model::LocationFilter
Definition: LocationFilter.h:39
Aws::DataSync::Model::ListLocationsRequest::WithFilters
ListLocationsRequest & WithFilters(const Aws::Vector< LocationFilter > &value)
Definition: ListLocationsRequest.h:150
Aws::DataSync::Model::ListLocationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListLocationsRequest.h:35
Aws::DataSync::Model::ListLocationsRequest::WithMaxResults
ListLocationsRequest & WithMaxResults(int value)
Definition: ListLocationsRequest.h:60
Aws::DataSync::Model::ListLocationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataSync::Model::ListLocationsRequest::ListLocationsRequest
ListLocationsRequest()
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::ListLocationsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListLocationsRequest.h:85