AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListKeysResult.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/KMS_EXPORTS.h>
10#include <aws/kms/model/KeyListEntry.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace KMS {
24namespace Model {
26 public:
27 AWS_KMS_API ListKeysResult() = default;
30
32
35 inline const Aws::Vector<KeyListEntry>& GetKeys() const { return m_keys; }
36 template <typename KeysT = Aws::Vector<KeyListEntry>>
37 void SetKeys(KeysT&& value) {
38 m_keysHasBeenSet = true;
39 m_keys = std::forward<KeysT>(value);
40 }
41 template <typename KeysT = Aws::Vector<KeyListEntry>>
42 ListKeysResult& WithKeys(KeysT&& value) {
43 SetKeys(std::forward<KeysT>(value));
44 return *this;
45 }
46 template <typename KeysT = KeyListEntry>
47 ListKeysResult& AddKeys(KeysT&& value) {
48 m_keysHasBeenSet = true;
49 m_keys.emplace_back(std::forward<KeysT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
60 template <typename NextMarkerT = Aws::String>
61 void SetNextMarker(NextMarkerT&& value) {
62 m_nextMarkerHasBeenSet = true;
63 m_nextMarker = std::forward<NextMarkerT>(value);
64 }
65 template <typename NextMarkerT = Aws::String>
66 ListKeysResult& WithNextMarker(NextMarkerT&& value) {
67 SetNextMarker(std::forward<NextMarkerT>(value));
68 return *this;
69 }
71
73
79 inline bool GetTruncated() const { return m_truncated; }
80 inline void SetTruncated(bool value) {
81 m_truncatedHasBeenSet = true;
82 m_truncated = value;
83 }
84 inline ListKeysResult& WithTruncated(bool value) {
85 SetTruncated(value);
86 return *this;
87 }
89
91
92 inline const Aws::String& GetRequestId() const { return m_requestId; }
93 template <typename RequestIdT = Aws::String>
94 void SetRequestId(RequestIdT&& value) {
95 m_requestIdHasBeenSet = true;
96 m_requestId = std::forward<RequestIdT>(value);
97 }
98 template <typename RequestIdT = Aws::String>
99 ListKeysResult& WithRequestId(RequestIdT&& value) {
100 SetRequestId(std::forward<RequestIdT>(value));
101 return *this;
102 }
104 private:
106
107 Aws::String m_nextMarker;
108
109 bool m_truncated{false};
110
111 Aws::String m_requestId;
112 bool m_keysHasBeenSet = false;
113 bool m_nextMarkerHasBeenSet = false;
114 bool m_truncatedHasBeenSet = false;
115 bool m_requestIdHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace KMS
120} // namespace Aws
void SetRequestId(RequestIdT &&value)
ListKeysResult & WithKeys(KeysT &&value)
AWS_KMS_API ListKeysResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetNextMarker() const
ListKeysResult & AddKeys(KeysT &&value)
const Aws::Vector< KeyListEntry > & GetKeys() const
AWS_KMS_API ListKeysResult()=default
ListKeysResult & WithRequestId(RequestIdT &&value)
void SetNextMarker(NextMarkerT &&value)
const Aws::String & GetRequestId() const
AWS_KMS_API ListKeysResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListKeysResult & WithTruncated(bool value)
ListKeysResult & WithNextMarker(NextMarkerT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue