/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace KMS { namespace Model { class ListKeysResult { public: AWS_KMS_API ListKeysResult(); AWS_KMS_API ListKeysResult(const Aws::AmazonWebServiceResult& result); AWS_KMS_API ListKeysResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of KMS keys.

*/ inline const Aws::Vector& GetKeys() const{ return m_keys; } /** *

A list of KMS keys.

*/ inline void SetKeys(const Aws::Vector& value) { m_keys = value; } /** *

A list of KMS keys.

*/ inline void SetKeys(Aws::Vector&& value) { m_keys = std::move(value); } /** *

A list of KMS keys.

*/ inline ListKeysResult& WithKeys(const Aws::Vector& value) { SetKeys(value); return *this;} /** *

A list of KMS keys.

*/ inline ListKeysResult& WithKeys(Aws::Vector&& value) { SetKeys(std::move(value)); return *this;} /** *

A list of KMS keys.

*/ inline ListKeysResult& AddKeys(const KeyListEntry& value) { m_keys.push_back(value); return *this; } /** *

A list of KMS keys.

*/ inline ListKeysResult& AddKeys(KeyListEntry&& value) { m_keys.push_back(std::move(value)); return *this; } /** *

When Truncated is true, this element is present and contains the * value to use for the Marker parameter in a subsequent request.

*/ inline const Aws::String& GetNextMarker() const{ return m_nextMarker; } /** *

When Truncated is true, this element is present and contains the * value to use for the Marker parameter in a subsequent request.

*/ inline void SetNextMarker(const Aws::String& value) { m_nextMarker = value; } /** *

When Truncated is true, this element is present and contains the * value to use for the Marker parameter in a subsequent request.

*/ inline void SetNextMarker(Aws::String&& value) { m_nextMarker = std::move(value); } /** *

When Truncated is true, this element is present and contains the * value to use for the Marker parameter in a subsequent request.

*/ inline void SetNextMarker(const char* value) { m_nextMarker.assign(value); } /** *

When Truncated is true, this element is present and contains the * value to use for the Marker parameter in a subsequent request.

*/ inline ListKeysResult& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;} /** *

When Truncated is true, this element is present and contains the * value to use for the Marker parameter in a subsequent request.

*/ inline ListKeysResult& WithNextMarker(Aws::String&& value) { SetNextMarker(std::move(value)); return *this;} /** *

When Truncated is true, this element is present and contains the * value to use for the Marker parameter in a subsequent request.

*/ inline ListKeysResult& WithNextMarker(const char* value) { SetNextMarker(value); return *this;} /** *

A flag that indicates whether there are more items in the list. When this * value is true, the list in this response is truncated. To get more items, pass * the value of the NextMarker element in thisresponse to the * Marker parameter in a subsequent request.

*/ inline bool GetTruncated() const{ return m_truncated; } /** *

A flag that indicates whether there are more items in the list. When this * value is true, the list in this response is truncated. To get more items, pass * the value of the NextMarker element in thisresponse to the * Marker parameter in a subsequent request.

*/ inline void SetTruncated(bool value) { m_truncated = value; } /** *

A flag that indicates whether there are more items in the list. When this * value is true, the list in this response is truncated. To get more items, pass * the value of the NextMarker element in thisresponse to the * Marker parameter in a subsequent request.

*/ inline ListKeysResult& WithTruncated(bool value) { SetTruncated(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline ListKeysResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListKeysResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListKeysResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_keys; Aws::String m_nextMarker; bool m_truncated; Aws::String m_requestId; }; } // namespace Model } // namespace KMS } // namespace Aws