AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
ListDevicesRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
8#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CognitoIdentityProvider {
15namespace Model {
16
23 public:
24 AWS_COGNITOIDENTITYPROVIDER_API ListDevicesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListDevices"; }
31
32 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
33
34 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
42 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
43 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
44 template <typename AccessTokenT = Aws::String>
45 void SetAccessToken(AccessTokenT&& value) {
46 m_accessTokenHasBeenSet = true;
47 m_accessToken = std::forward<AccessTokenT>(value);
48 }
49 template <typename AccessTokenT = Aws::String>
50 ListDevicesRequest& WithAccessToken(AccessTokenT&& value) {
51 SetAccessToken(std::forward<AccessTokenT>(value));
52 return *this;
53 }
55
57
61 inline int GetLimit() const { return m_limit; }
62 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
63 inline void SetLimit(int value) {
64 m_limitHasBeenSet = true;
65 m_limit = value;
66 }
67 inline ListDevicesRequest& WithLimit(int value) {
68 SetLimit(value);
69 return *this;
70 }
72
74
82 inline const Aws::String& GetPaginationToken() const { return m_paginationToken; }
83 inline bool PaginationTokenHasBeenSet() const { return m_paginationTokenHasBeenSet; }
84 template <typename PaginationTokenT = Aws::String>
85 void SetPaginationToken(PaginationTokenT&& value) {
86 m_paginationTokenHasBeenSet = true;
87 m_paginationToken = std::forward<PaginationTokenT>(value);
88 }
89 template <typename PaginationTokenT = Aws::String>
90 ListDevicesRequest& WithPaginationToken(PaginationTokenT&& value) {
91 SetPaginationToken(std::forward<PaginationTokenT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_accessToken;
97
98 int m_limit{0};
99
100 Aws::String m_paginationToken;
101 bool m_accessTokenHasBeenSet = false;
102 bool m_limitHasBeenSet = false;
103 bool m_paginationTokenHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace CognitoIdentityProvider
108} // namespace Aws
ListDevicesRequest & WithPaginationToken(PaginationTokenT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
ListDevicesRequest & WithAccessToken(AccessTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_COGNITOIDENTITYPROVIDER_API ListDevicesRequest()=default
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String