AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
ListKeysRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kms/KMSRequest.h>
10#include <aws/kms/KMS_EXPORTS.h>
11#include <aws/kms/model/ResourceOwnerType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace KMS {
17namespace Model {
18
22 public:
23 AWS_KMS_API ListKeysRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ListKeys"; }
30
31 AWS_KMS_API Aws::String SerializePayload() const override;
32
34
36
43 inline int GetLimit() const { return m_limit; }
44 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
45 inline void SetLimit(int value) {
46 m_limitHasBeenSet = true;
47 m_limit = value;
48 }
49 inline ListKeysRequest& WithLimit(int value) {
50 SetLimit(value);
51 return *this;
52 }
54
56
61 inline const Aws::String& GetMarker() const { return m_marker; }
62 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
63 template <typename MarkerT = Aws::String>
64 void SetMarker(MarkerT&& value) {
65 m_markerHasBeenSet = true;
66 m_marker = std::forward<MarkerT>(value);
67 }
68 template <typename MarkerT = Aws::String>
69 ListKeysRequest& WithMarker(MarkerT&& value) {
70 SetMarker(std::forward<MarkerT>(value));
71 return *this;
72 }
74
76
103 inline const Aws::Vector<ResourceOwnerType>& GetResourceOwners() const { return m_resourceOwners; }
104 inline bool ResourceOwnersHasBeenSet() const { return m_resourceOwnersHasBeenSet; }
105 template <typename ResourceOwnersT = Aws::Vector<ResourceOwnerType>>
106 void SetResourceOwners(ResourceOwnersT&& value) {
107 m_resourceOwnersHasBeenSet = true;
108 m_resourceOwners = std::forward<ResourceOwnersT>(value);
109 }
110 template <typename ResourceOwnersT = Aws::Vector<ResourceOwnerType>>
111 ListKeysRequest& WithResourceOwners(ResourceOwnersT&& value) {
112 SetResourceOwners(std::forward<ResourceOwnersT>(value));
113 return *this;
114 }
116 m_resourceOwnersHasBeenSet = true;
117 m_resourceOwners.push_back(value);
118 return *this;
119 }
121 private:
122 int m_limit{0};
123
124 Aws::String m_marker;
125
126 Aws::Vector<ResourceOwnerType> m_resourceOwners;
127 bool m_limitHasBeenSet = false;
128 bool m_markerHasBeenSet = false;
129 bool m_resourceOwnersHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace KMS
134} // namespace Aws
virtual const char * GetServiceRequestName() const override
ListKeysRequest & WithLimit(int value)
const Aws::Vector< ResourceOwnerType > & GetResourceOwners() const
void SetResourceOwners(ResourceOwnersT &&value)
const Aws::String & GetMarker() const
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_KMS_API Aws::String SerializePayload() const override
void SetMarker(MarkerT &&value)
ListKeysRequest & WithResourceOwners(ResourceOwnersT &&value)
ListKeysRequest & WithMarker(MarkerT &&value)
ListKeysRequest & AddResourceOwners(ResourceOwnerType value)
AWS_KMS_API ListKeysRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector