AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ListGrantsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/kms/KMS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace KMS {
15namespace Model {
16
20 public:
21 AWS_KMS_API ListGrantsRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ListGrants"; }
28
29 AWS_KMS_API Aws::String SerializePayload() const override;
30
32
34
41 inline int GetLimit() const { return m_limit; }
42 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
43 inline void SetLimit(int value) {
44 m_limitHasBeenSet = true;
45 m_limit = value;
46 }
47 inline ListGrantsRequest& WithLimit(int value) {
48 SetLimit(value);
49 return *this;
50 }
52
54
59 inline const Aws::String& GetMarker() const { return m_marker; }
60 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
61 template <typename MarkerT = Aws::String>
62 void SetMarker(MarkerT&& value) {
63 m_markerHasBeenSet = true;
64 m_marker = std::forward<MarkerT>(value);
65 }
66 template <typename MarkerT = Aws::String>
67 ListGrantsRequest& WithMarker(MarkerT&& value) {
68 SetMarker(std::forward<MarkerT>(value));
69 return *this;
70 }
72
74
84 inline const Aws::String& GetKeyId() const { return m_keyId; }
85 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
86 template <typename KeyIdT = Aws::String>
87 void SetKeyId(KeyIdT&& value) {
88 m_keyIdHasBeenSet = true;
89 m_keyId = std::forward<KeyIdT>(value);
90 }
91 template <typename KeyIdT = Aws::String>
92 ListGrantsRequest& WithKeyId(KeyIdT&& value) {
93 SetKeyId(std::forward<KeyIdT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetGrantId() const { return m_grantId; }
104 inline bool GrantIdHasBeenSet() const { return m_grantIdHasBeenSet; }
105 template <typename GrantIdT = Aws::String>
106 void SetGrantId(GrantIdT&& value) {
107 m_grantIdHasBeenSet = true;
108 m_grantId = std::forward<GrantIdT>(value);
109 }
110 template <typename GrantIdT = Aws::String>
111 ListGrantsRequest& WithGrantId(GrantIdT&& value) {
112 SetGrantId(std::forward<GrantIdT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetGranteePrincipal() const { return m_granteePrincipal; }
123 inline bool GranteePrincipalHasBeenSet() const { return m_granteePrincipalHasBeenSet; }
124 template <typename GranteePrincipalT = Aws::String>
125 void SetGranteePrincipal(GranteePrincipalT&& value) {
126 m_granteePrincipalHasBeenSet = true;
127 m_granteePrincipal = std::forward<GranteePrincipalT>(value);
128 }
129 template <typename GranteePrincipalT = Aws::String>
130 ListGrantsRequest& WithGranteePrincipal(GranteePrincipalT&& value) {
131 SetGranteePrincipal(std::forward<GranteePrincipalT>(value));
132 return *this;
133 }
135 private:
136 int m_limit{0};
137
138 Aws::String m_marker;
139
140 Aws::String m_keyId;
141
142 Aws::String m_grantId;
143
144 Aws::String m_granteePrincipal;
145 bool m_limitHasBeenSet = false;
146 bool m_markerHasBeenSet = false;
147 bool m_keyIdHasBeenSet = false;
148 bool m_grantIdHasBeenSet = false;
149 bool m_granteePrincipalHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace KMS
154} // namespace Aws
ListGrantsRequest & WithGrantId(GrantIdT &&value)
const Aws::String & GetGrantId() const
AWS_KMS_API Aws::String SerializePayload() const override
ListGrantsRequest & WithMarker(MarkerT &&value)
ListGrantsRequest & WithKeyId(KeyIdT &&value)
const Aws::String & GetKeyId() const
const Aws::String & GetMarker() const
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListGrantsRequest & WithLimit(int value)
ListGrantsRequest & WithGranteePrincipal(GranteePrincipalT &&value)
void SetGranteePrincipal(GranteePrincipalT &&value)
const Aws::String & GetGranteePrincipal() const
virtual const char * GetServiceRequestName() const override
AWS_KMS_API ListGrantsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String