AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListLocationsRequest.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/datasync/DataSyncRequest.h>
10#include <aws/datasync/DataSync_EXPORTS.h>
11#include <aws/datasync/model/LocationFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DataSync {
17namespace Model {
18
25 public:
26 AWS_DATASYNC_API ListLocationsRequest() = 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 "ListLocations"; }
33
34 AWS_DATASYNC_API Aws::String SerializePayload() const override;
35
37
39
42 inline int GetMaxResults() const { return m_maxResults; }
43 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
44 inline void SetMaxResults(int value) {
45 m_maxResultsHasBeenSet = true;
46 m_maxResults = value;
47 }
49 SetMaxResults(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetNextToken() const { return m_nextToken; }
60 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
61 template <typename NextTokenT = Aws::String>
62 void SetNextToken(NextTokenT&& value) {
63 m_nextTokenHasBeenSet = true;
64 m_nextToken = std::forward<NextTokenT>(value);
65 }
66 template <typename NextTokenT = Aws::String>
67 ListLocationsRequest& WithNextToken(NextTokenT&& value) {
68 SetNextToken(std::forward<NextTokenT>(value));
69 return *this;
70 }
72
74
80 inline const Aws::Vector<LocationFilter>& GetFilters() const { return m_filters; }
81 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
82 template <typename FiltersT = Aws::Vector<LocationFilter>>
83 void SetFilters(FiltersT&& value) {
84 m_filtersHasBeenSet = true;
85 m_filters = std::forward<FiltersT>(value);
86 }
87 template <typename FiltersT = Aws::Vector<LocationFilter>>
88 ListLocationsRequest& WithFilters(FiltersT&& value) {
89 SetFilters(std::forward<FiltersT>(value));
90 return *this;
91 }
92 template <typename FiltersT = LocationFilter>
93 ListLocationsRequest& AddFilters(FiltersT&& value) {
94 m_filtersHasBeenSet = true;
95 m_filters.emplace_back(std::forward<FiltersT>(value));
96 return *this;
97 }
99 private:
100 int m_maxResults{0};
101
102 Aws::String m_nextToken;
103
105 bool m_maxResultsHasBeenSet = false;
106 bool m_nextTokenHasBeenSet = false;
107 bool m_filtersHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace DataSync
112} // namespace Aws
const Aws::Vector< LocationFilter > & GetFilters() const
ListLocationsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
ListLocationsRequest & WithFilters(FiltersT &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
ListLocationsRequest & WithMaxResults(int value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListLocationsRequest & AddFilters(FiltersT &&value)
AWS_DATASYNC_API ListLocationsRequest()=default
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