AWS SDK for C++

AWS SDK for C++ Version 1.11.683

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/gamelift/GameLiftRequest.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/LocationFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GameLift {
17namespace Model {
18
22 public:
23 AWS_GAMELIFT_API ListLocationsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ListLocations"; }
30
31 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
32
34
36
42 inline const Aws::Vector<LocationFilter>& GetFilters() const { return m_filters; }
43 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
44 template <typename FiltersT = Aws::Vector<LocationFilter>>
45 void SetFilters(FiltersT&& value) {
46 m_filtersHasBeenSet = true;
47 m_filters = std::forward<FiltersT>(value);
48 }
49 template <typename FiltersT = Aws::Vector<LocationFilter>>
50 ListLocationsRequest& WithFilters(FiltersT&& value) {
51 SetFilters(std::forward<FiltersT>(value));
52 return *this;
53 }
55 m_filtersHasBeenSet = true;
56 m_filters.push_back(value);
57 return *this;
58 }
60
62
66 inline int GetLimit() const { return m_limit; }
67 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
68 inline void SetLimit(int value) {
69 m_limitHasBeenSet = true;
70 m_limit = value;
71 }
72 inline ListLocationsRequest& WithLimit(int value) {
73 SetLimit(value);
74 return *this;
75 }
77
79
84 inline const Aws::String& GetNextToken() const { return m_nextToken; }
85 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
86 template <typename NextTokenT = Aws::String>
87 void SetNextToken(NextTokenT&& value) {
88 m_nextTokenHasBeenSet = true;
89 m_nextToken = std::forward<NextTokenT>(value);
90 }
91 template <typename NextTokenT = Aws::String>
92 ListLocationsRequest& WithNextToken(NextTokenT&& value) {
93 SetNextToken(std::forward<NextTokenT>(value));
94 return *this;
95 }
97 private:
99 bool m_filtersHasBeenSet = false;
100
101 int m_limit{0};
102 bool m_limitHasBeenSet = false;
103
104 Aws::String m_nextToken;
105 bool m_nextTokenHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace GameLift
110} // namespace Aws
ListLocationsRequest & WithFilters(FiltersT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
ListLocationsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< LocationFilter > & GetFilters() const
ListLocationsRequest & WithLimit(int value)
ListLocationsRequest & AddFilters(LocationFilter value)
virtual const char * GetServiceRequestName() const override
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GAMELIFT_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