AWS SDK for C++  1.9.109
AWS SDK for C++
ListStreamsRequest.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 "ListStreams"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline int GetMaxResults() const{ return m_maxResults; }
45 
49  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
50 
54  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
55 
59  inline ListStreamsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
60 
61 
65  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
66 
70  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
71 
75  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
76 
80  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
81 
85  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
86 
90  inline ListStreamsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
91 
95  inline ListStreamsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
96 
100  inline ListStreamsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
101 
102 
106  inline bool GetAscendingOrder() const{ return m_ascendingOrder; }
107 
111  inline bool AscendingOrderHasBeenSet() const { return m_ascendingOrderHasBeenSet; }
112 
116  inline void SetAscendingOrder(bool value) { m_ascendingOrderHasBeenSet = true; m_ascendingOrder = value; }
117 
121  inline ListStreamsRequest& WithAscendingOrder(bool value) { SetAscendingOrder(value); return *this;}
122 
123  private:
124 
125  int m_maxResults;
126  bool m_maxResultsHasBeenSet;
127 
128  Aws::String m_nextToken;
129  bool m_nextTokenHasBeenSet;
130 
131  bool m_ascendingOrder;
132  bool m_ascendingOrderHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace IoT
137 } // namespace Aws
Aws::IoT::Model::ListStreamsRequest::WithNextToken
ListStreamsRequest & WithNextToken(const Aws::String &value)
Definition: ListStreamsRequest.h:90
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListStreamsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListStreamsRequest.h:85
Aws::IoT::Model::ListStreamsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListStreamsRequest.h:54
Aws::IoT::Model::ListStreamsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListStreamsRequest.h:80
Aws::IoT::Model::ListStreamsRequest::GetAscendingOrder
bool GetAscendingOrder() const
Definition: ListStreamsRequest.h:106
Aws::IoT::Model::ListStreamsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListStreamsRequest.h:70
Aws::IoT::Model::ListStreamsRequest::AscendingOrderHasBeenSet
bool AscendingOrderHasBeenSet() const
Definition: ListStreamsRequest.h:111
Aws::IoT::Model::ListStreamsRequest::SetAscendingOrder
void SetAscendingOrder(bool value)
Definition: ListStreamsRequest.h:116
Aws::IoT::Model::ListStreamsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListStreamsRequest.h:75
Aws::IoT::Model::ListStreamsRequest::WithAscendingOrder
ListStreamsRequest & WithAscendingOrder(bool value)
Definition: ListStreamsRequest.h:121
Aws::IoT::Model::ListStreamsRequest::ListStreamsRequest
ListStreamsRequest()
Aws::IoT::Model::ListStreamsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListStreamsRequest.h:49
Aws::IoT::Model::ListStreamsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListStreamsRequest.h:65
Aws::IoT::Model::ListStreamsRequest::WithNextToken
ListStreamsRequest & WithNextToken(const char *value)
Definition: ListStreamsRequest.h:100
Aws::IoT::Model::ListStreamsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListStreamsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListStreamsRequest.h:44
Aws::IoT::Model::ListStreamsRequest
Definition: ListStreamsRequest.h:26
Aws::IoT::Model::ListStreamsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListStreamsRequest.h:34
Aws::IoT::Model::ListStreamsRequest::WithMaxResults
ListStreamsRequest & WithMaxResults(int value)
Definition: ListStreamsRequest.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListStreamsRequest::SerializePayload
Aws::String SerializePayload() const override
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::ListStreamsRequest::WithNextToken
ListStreamsRequest & WithNextToken(Aws::String &&value)
Definition: ListStreamsRequest.h:95
IoTRequest.h
IoT_EXPORTS.h