AWS SDK for C++  1.9.159
AWS SDK for C++
ListIndicesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace IoT
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListIndices"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
45  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
46 
51  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
52 
57  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
58 
63  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
64 
69  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
70 
75  inline ListIndicesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
76 
81  inline ListIndicesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
82 
87  inline ListIndicesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
88 
89 
93  inline int GetMaxResults() const{ return m_maxResults; }
94 
98  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
99 
103  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
104 
108  inline ListIndicesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
109 
110  private:
111 
112  Aws::String m_nextToken;
113  bool m_nextTokenHasBeenSet;
114 
115  int m_maxResults;
116  bool m_maxResultsHasBeenSet;
117  };
118 
119 } // namespace Model
120 } // namespace IoT
121 } // namespace Aws
Aws::IoT::Model::ListIndicesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListIndicesRequest.h:103
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListIndicesRequest::ListIndicesRequest
ListIndicesRequest()
Aws::IoT::Model::ListIndicesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListIndicesRequest.h:57
Aws::IoT::Model::ListIndicesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::ListIndicesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListIndicesRequest.h:93
Aws::IoT::Model::ListIndicesRequest
Definition: ListIndicesRequest.h:26
Aws::IoT::Model::ListIndicesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::ListIndicesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListIndicesRequest.h:63
Aws::IoT::Model::ListIndicesRequest::WithNextToken
ListIndicesRequest & WithNextToken(const Aws::String &value)
Definition: ListIndicesRequest.h:75
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListIndicesRequest::WithNextToken
ListIndicesRequest & WithNextToken(Aws::String &&value)
Definition: ListIndicesRequest.h:81
Aws::IoT::Model::ListIndicesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListIndicesRequest.h:98
Aws::IoT::Model::ListIndicesRequest::WithMaxResults
ListIndicesRequest & WithMaxResults(int value)
Definition: ListIndicesRequest.h:108
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListIndicesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListIndicesRequest.h:34
Aws::IoT::Model::ListIndicesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListIndicesRequest.h:45
Aws::IoT::Model::ListIndicesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListIndicesRequest.h:69
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ListIndicesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListIndicesRequest.h:51
Aws::IoT::Model::ListIndicesRequest::WithNextToken
ListIndicesRequest & WithNextToken(const char *value)
Definition: ListIndicesRequest.h:87
IoTRequest.h
IoT_EXPORTS.h