AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListEndpointsRequest.h
1
6#pragma once
7#include <aws/comprehend/ComprehendRequest.h>
8#include <aws/comprehend/Comprehend_EXPORTS.h>
9#include <aws/comprehend/model/EndpointFilter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Comprehend {
16namespace Model {
17
21 public:
22 AWS_COMPREHEND_API ListEndpointsRequest() = 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 "ListEndpoints"; }
29
30 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
31
33
35
40 inline const EndpointFilter& GetFilter() const { return m_filter; }
41 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
42 template <typename FilterT = EndpointFilter>
43 void SetFilter(FilterT&& value) {
44 m_filterHasBeenSet = true;
45 m_filter = std::forward<FilterT>(value);
46 }
47 template <typename FilterT = EndpointFilter>
48 ListEndpointsRequest& WithFilter(FilterT&& value) {
49 SetFilter(std::forward<FilterT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetNextToken() const { return m_nextToken; }
59 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
60 template <typename NextTokenT = Aws::String>
61 void SetNextToken(NextTokenT&& value) {
62 m_nextTokenHasBeenSet = true;
63 m_nextToken = std::forward<NextTokenT>(value);
64 }
65 template <typename NextTokenT = Aws::String>
66 ListEndpointsRequest& WithNextToken(NextTokenT&& value) {
67 SetNextToken(std::forward<NextTokenT>(value));
68 return *this;
69 }
71
73
76 inline int GetMaxResults() const { return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) {
79 m_maxResultsHasBeenSet = true;
80 m_maxResults = value;
81 }
83 SetMaxResults(value);
84 return *this;
85 }
87 private:
88 EndpointFilter m_filter;
89
90 Aws::String m_nextToken;
91
92 int m_maxResults{0};
93 bool m_filterHasBeenSet = false;
94 bool m_nextTokenHasBeenSet = false;
95 bool m_maxResultsHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Comprehend
100} // namespace Aws
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListEndpointsRequest & WithFilter(FilterT &&value)
virtual const char * GetServiceRequestName() const override
AWS_COMPREHEND_API ListEndpointsRequest()=default
ListEndpointsRequest & WithNextToken(NextTokenT &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
ListEndpointsRequest & WithMaxResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String