AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListKeysRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/payment-cryptography/PaymentCryptographyRequest.h>
9#include <aws/payment-cryptography/PaymentCryptography_EXPORTS.h>
10#include <aws/payment-cryptography/model/KeyState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace PaymentCryptography {
16namespace Model {
17
21 public:
22 AWS_PAYMENTCRYPTOGRAPHY_API ListKeysRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListKeys"; }
29
30 AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override;
31
32 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline KeyState GetKeyState() const { return m_keyState; }
39 inline bool KeyStateHasBeenSet() const { return m_keyStateHasBeenSet; }
40 inline void SetKeyState(KeyState value) {
41 m_keyStateHasBeenSet = true;
42 m_keyState = value;
43 }
45 SetKeyState(value);
46 return *this;
47 }
49
51
56 inline const Aws::String& GetNextToken() const { return m_nextToken; }
57 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
58 template <typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) {
60 m_nextTokenHasBeenSet = true;
61 m_nextToken = std::forward<NextTokenT>(value);
62 }
63 template <typename NextTokenT = Aws::String>
64 ListKeysRequest& WithNextToken(NextTokenT&& value) {
65 SetNextToken(std::forward<NextTokenT>(value));
66 return *this;
67 }
69
71
78 inline int GetMaxResults() const { return m_maxResults; }
79 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
80 inline void SetMaxResults(int value) {
81 m_maxResultsHasBeenSet = true;
82 m_maxResults = value;
83 }
84 inline ListKeysRequest& WithMaxResults(int value) {
85 SetMaxResults(value);
86 return *this;
87 }
89 private:
90 KeyState m_keyState{KeyState::NOT_SET};
91
92 Aws::String m_nextToken;
93
94 int m_maxResults{0};
95 bool m_keyStateHasBeenSet = false;
96 bool m_nextTokenHasBeenSet = false;
97 bool m_maxResultsHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace PaymentCryptography
102} // namespace Aws
virtual const char * GetServiceRequestName() const override
ListKeysRequest & WithKeyState(KeyState value)
ListKeysRequest & WithNextToken(NextTokenT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PAYMENTCRYPTOGRAPHY_API ListKeysRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String