AWS SDK for C++

AWS SDK for C++ Version 1.11.811

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
123 inline const Aws::String& GetGranteePrincipal() const { return m_granteePrincipal; }
124 inline bool GranteePrincipalHasBeenSet() const { return m_granteePrincipalHasBeenSet; }
125 template <typename GranteePrincipalT = Aws::String>
126 void SetGranteePrincipal(GranteePrincipalT&& value) {
127 m_granteePrincipalHasBeenSet = true;
128 m_granteePrincipal = std::forward<GranteePrincipalT>(value);
129 }
130 template <typename GranteePrincipalT = Aws::String>
131 ListGrantsRequest& WithGranteePrincipal(GranteePrincipalT&& value) {
132 SetGranteePrincipal(std::forward<GranteePrincipalT>(value));
133 return *this;
134 }
136
138
145 inline const Aws::String& GetGranteeServicePrincipal() const { return m_granteeServicePrincipal; }
146 inline bool GranteeServicePrincipalHasBeenSet() const { return m_granteeServicePrincipalHasBeenSet; }
147 template <typename GranteeServicePrincipalT = Aws::String>
148 void SetGranteeServicePrincipal(GranteeServicePrincipalT&& value) {
149 m_granteeServicePrincipalHasBeenSet = true;
150 m_granteeServicePrincipal = std::forward<GranteeServicePrincipalT>(value);
151 }
152 template <typename GranteeServicePrincipalT = Aws::String>
153 ListGrantsRequest& WithGranteeServicePrincipal(GranteeServicePrincipalT&& value) {
154 SetGranteeServicePrincipal(std::forward<GranteeServicePrincipalT>(value));
155 return *this;
156 }
158 private:
159 int m_limit{0};
160
161 Aws::String m_marker;
162
163 Aws::String m_keyId;
164
165 Aws::String m_grantId;
166
167 Aws::String m_granteePrincipal;
168
169 Aws::String m_granteeServicePrincipal;
170 bool m_limitHasBeenSet = false;
171 bool m_markerHasBeenSet = false;
172 bool m_keyIdHasBeenSet = false;
173 bool m_grantIdHasBeenSet = false;
174 bool m_granteePrincipalHasBeenSet = false;
175 bool m_granteeServicePrincipalHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace KMS
180} // 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)
void SetGranteeServicePrincipal(GranteeServicePrincipalT &&value)
const Aws::String & GetGranteeServicePrincipal() const
ListGrantsRequest & WithGranteePrincipal(GranteePrincipalT &&value)
void SetGranteePrincipal(GranteePrincipalT &&value)
const Aws::String & GetGranteePrincipal() const
virtual const char * GetServiceRequestName() const override
ListGrantsRequest & WithGranteeServicePrincipal(GranteeServicePrincipalT &&value)
AWS_KMS_API ListGrantsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String