AWS SDK for C++  1.9.132
AWS SDK for C++
ListEndpointsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Comprehend
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ListEndpoints"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const EndpointFilter& GetFilter() const{ return m_filter; }
44 
50  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
51 
57  inline void SetFilter(const EndpointFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
58 
64  inline void SetFilter(EndpointFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
65 
71  inline ListEndpointsRequest& WithFilter(const EndpointFilter& value) { SetFilter(value); return *this;}
72 
78  inline ListEndpointsRequest& WithFilter(EndpointFilter&& value) { SetFilter(std::move(value)); return *this;}
79 
80 
84  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
89  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
90 
94  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
95 
99  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
100 
104  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
105 
109  inline ListEndpointsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
110 
114  inline ListEndpointsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
115 
119  inline ListEndpointsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
120 
121 
125  inline int GetMaxResults() const{ return m_maxResults; }
126 
130  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
131 
135  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
136 
140  inline ListEndpointsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
141 
142  private:
143 
144  EndpointFilter m_filter;
145  bool m_filterHasBeenSet;
146 
147  Aws::String m_nextToken;
148  bool m_nextTokenHasBeenSet;
149 
150  int m_maxResults;
151  bool m_maxResultsHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace Comprehend
156 } // namespace Aws
Aws::Comprehend::ComprehendRequest
Definition: ComprehendRequest.h:17
AWS_COMPREHEND_API
#define AWS_COMPREHEND_API
Definition: Comprehend_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Comprehend::Model::ListEndpointsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListEndpointsRequest.h:104
Aws::Comprehend::Model::ListEndpointsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListEndpointsRequest.h:89
Aws::Comprehend::Model::ListEndpointsRequest::WithFilter
ListEndpointsRequest & WithFilter(const EndpointFilter &value)
Definition: ListEndpointsRequest.h:71
Aws::Comprehend::Model::ListEndpointsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListEndpointsRequest.h:94
Aws::Comprehend::Model::ListEndpointsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListEndpointsRequest.h:125
Aws::Comprehend::Model::ListEndpointsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Comprehend::Model::ListEndpointsRequest::GetFilter
const EndpointFilter & GetFilter() const
Definition: ListEndpointsRequest.h:43
EndpointFilter.h
Aws::Comprehend::Model::ListEndpointsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListEndpointsRequest.h:84
Aws::Comprehend::Model::ListEndpointsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListEndpointsRequest.h:31
Aws::Comprehend::Model::ListEndpointsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListEndpointsRequest.h:135
Aws::Comprehend::Model::ListEndpointsRequest
Definition: ListEndpointsRequest.h:23
Aws::Comprehend::Model::ListEndpointsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::Comprehend::Model::ListEndpointsRequest::WithNextToken
ListEndpointsRequest & WithNextToken(const Aws::String &value)
Definition: ListEndpointsRequest.h:109
Aws::Comprehend::Model::EndpointFilter
Definition: EndpointFilter.h:36
ComprehendRequest.h
Aws::Comprehend::Model::ListEndpointsRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: ListEndpointsRequest.h:50
Aws::Comprehend::Model::ListEndpointsRequest::WithNextToken
ListEndpointsRequest & WithNextToken(const char *value)
Definition: ListEndpointsRequest.h:119
Comprehend_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::ListEndpointsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListEndpointsRequest.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Comprehend::Model::ListEndpointsRequest::SetFilter
void SetFilter(EndpointFilter &&value)
Definition: ListEndpointsRequest.h:64
Aws::Comprehend::Model::ListEndpointsRequest::ListEndpointsRequest
ListEndpointsRequest()
Aws::Comprehend::Model::ListEndpointsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListEndpointsRequest.h:130
Aws::Comprehend::Model::ListEndpointsRequest::SetFilter
void SetFilter(const EndpointFilter &value)
Definition: ListEndpointsRequest.h:57
Aws::Comprehend::Model::ListEndpointsRequest::WithMaxResults
ListEndpointsRequest & WithMaxResults(int value)
Definition: ListEndpointsRequest.h:140
Aws::Comprehend::Model::ListEndpointsRequest::WithNextToken
ListEndpointsRequest & WithNextToken(Aws::String &&value)
Definition: ListEndpointsRequest.h:114
Aws::Comprehend::Model::ListEndpointsRequest::WithFilter
ListEndpointsRequest & WithFilter(EndpointFilter &&value)
Definition: ListEndpointsRequest.h:78