AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListKeysRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/location/LocationServiceRequest.h>
9#include <aws/location/LocationService_EXPORTS.h>
10#include <aws/location/model/ApiKeyFilter.h>
11
12#include <utility>
13
14namespace Aws {
15namespace LocationService {
16namespace Model {
17
21 public:
22 AWS_LOCATIONSERVICE_API ListKeysRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListKeys"; }
29
30 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
31
33
37 inline int GetMaxResults() const { return m_maxResults; }
38 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
39 inline void SetMaxResults(int value) {
40 m_maxResultsHasBeenSet = true;
41 m_maxResults = value;
42 }
43 inline ListKeysRequest& WithMaxResults(int value) {
44 SetMaxResults(value);
45 return *this;
46 }
48
50
55 inline const Aws::String& GetNextToken() const { return m_nextToken; }
56 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
57 template <typename NextTokenT = Aws::String>
58 void SetNextToken(NextTokenT&& value) {
59 m_nextTokenHasBeenSet = true;
60 m_nextToken = std::forward<NextTokenT>(value);
61 }
62 template <typename NextTokenT = Aws::String>
63 ListKeysRequest& WithNextToken(NextTokenT&& value) {
64 SetNextToken(std::forward<NextTokenT>(value));
65 return *this;
66 }
68
70
74 inline const ApiKeyFilter& GetFilter() const { return m_filter; }
75 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
76 template <typename FilterT = ApiKeyFilter>
77 void SetFilter(FilterT&& value) {
78 m_filterHasBeenSet = true;
79 m_filter = std::forward<FilterT>(value);
80 }
81 template <typename FilterT = ApiKeyFilter>
82 ListKeysRequest& WithFilter(FilterT&& value) {
83 SetFilter(std::forward<FilterT>(value));
84 return *this;
85 }
87 private:
88 int m_maxResults{0};
89
90 Aws::String m_nextToken;
91
92 ApiKeyFilter m_filter;
93 bool m_maxResultsHasBeenSet = false;
94 bool m_nextTokenHasBeenSet = false;
95 bool m_filterHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace LocationService
100} // namespace Aws
ListKeysRequest & WithMaxResults(int value)
ListKeysRequest & WithFilter(FilterT &&value)
virtual const char * GetServiceRequestName() const override
ListKeysRequest & WithNextToken(NextTokenT &&value)
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
AWS_LOCATIONSERVICE_API ListKeysRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String