AWS SDK for C++  1.9.109
AWS SDK for C++
ListPoliciesRequest.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 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "ListPolicies"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
43 
47  inline const Aws::String& GetMarker() const{ return m_marker; }
48 
52  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
53 
57  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
58 
62  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
63 
67  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
68 
72  inline ListPoliciesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
73 
77  inline ListPoliciesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
78 
82  inline ListPoliciesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
83 
84 
88  inline int GetPageSize() const{ return m_pageSize; }
89 
93  inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
94 
98  inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
99 
103  inline ListPoliciesRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
104 
105 
110  inline bool GetAscendingOrder() const{ return m_ascendingOrder; }
111 
116  inline bool AscendingOrderHasBeenSet() const { return m_ascendingOrderHasBeenSet; }
117 
122  inline void SetAscendingOrder(bool value) { m_ascendingOrderHasBeenSet = true; m_ascendingOrder = value; }
123 
128  inline ListPoliciesRequest& WithAscendingOrder(bool value) { SetAscendingOrder(value); return *this;}
129 
130  private:
131 
132  Aws::String m_marker;
133  bool m_markerHasBeenSet;
134 
135  int m_pageSize;
136  bool m_pageSizeHasBeenSet;
137 
138  bool m_ascendingOrder;
139  bool m_ascendingOrderHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace IoT
144 } // namespace Aws
Aws::IoT::Model::ListPoliciesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListPoliciesRequest::ListPoliciesRequest
ListPoliciesRequest()
Aws::IoT::Model::ListPoliciesRequest::WithPageSize
ListPoliciesRequest & WithPageSize(int value)
Definition: ListPoliciesRequest.h:103
Aws::IoT::Model::ListPoliciesRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: ListPoliciesRequest.h:52
Aws::IoT::Model::ListPoliciesRequest::SetMarker
void SetMarker(const char *value)
Definition: ListPoliciesRequest.h:67
Aws::IoT::Model::ListPoliciesRequest::WithAscendingOrder
ListPoliciesRequest & WithAscendingOrder(bool value)
Definition: ListPoliciesRequest.h:128
Aws::IoT::Model::ListPoliciesRequest::SetPageSize
void SetPageSize(int value)
Definition: ListPoliciesRequest.h:98
Aws::IoT::Model::ListPoliciesRequest::PageSizeHasBeenSet
bool PageSizeHasBeenSet() const
Definition: ListPoliciesRequest.h:93
Aws::IoT::Model::ListPoliciesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::ListPoliciesRequest::AscendingOrderHasBeenSet
bool AscendingOrderHasBeenSet() const
Definition: ListPoliciesRequest.h:116
Aws::IoT::Model::ListPoliciesRequest::WithMarker
ListPoliciesRequest & WithMarker(Aws::String &&value)
Definition: ListPoliciesRequest.h:77
Aws::IoT::Model::ListPoliciesRequest::WithMarker
ListPoliciesRequest & WithMarker(const Aws::String &value)
Definition: ListPoliciesRequest.h:72
Aws::IoT::Model::ListPoliciesRequest
Definition: ListPoliciesRequest.h:29
AWSString.h
Aws::IoT::Model::ListPoliciesRequest::GetPageSize
int GetPageSize() const
Definition: ListPoliciesRequest.h:88
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListPoliciesRequest::SetAscendingOrder
void SetAscendingOrder(bool value)
Definition: ListPoliciesRequest.h:122
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::ListPoliciesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListPoliciesRequest.h:37
IoTRequest.h
Aws::IoT::Model::ListPoliciesRequest::GetMarker
const Aws::String & GetMarker() const
Definition: ListPoliciesRequest.h:47
Aws::IoT::Model::ListPoliciesRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: ListPoliciesRequest.h:57
Aws::IoT::Model::ListPoliciesRequest::GetAscendingOrder
bool GetAscendingOrder() const
Definition: ListPoliciesRequest.h:110
IoT_EXPORTS.h
Aws::IoT::Model::ListPoliciesRequest::WithMarker
ListPoliciesRequest & WithMarker(const char *value)
Definition: ListPoliciesRequest.h:82
Aws::IoT::Model::ListPoliciesRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: ListPoliciesRequest.h:62