/** * 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 ListRetirableGrantsResult { public: AWS_KMS_API ListRetirableGrantsResult(); AWS_KMS_API ListRetirableGrantsResult(const Aws::AmazonWebServiceResult& result); AWS_KMS_API ListRetirableGrantsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of grants.

*/ inline const Aws::Vector& GetGrants() const{ return m_grants; } /** *

A list of grants.

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

A list of grants.

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

A list of grants.

*/ inline ListRetirableGrantsResult& WithGrants(const Aws::Vector& value) { SetGrants(value); return *this;} /** *

A list of grants.

*/ inline ListRetirableGrantsResult& WithGrants(Aws::Vector&& value) { SetGrants(std::move(value)); return *this;} /** *

A list of grants.

*/ inline ListRetirableGrantsResult& AddGrants(const GrantListEntry& value) { m_grants.push_back(value); return *this; } /** *

A list of grants.

*/ inline ListRetirableGrantsResult& AddGrants(GrantListEntry&& value) { m_grants.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 ListRetirableGrantsResult& 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 ListRetirableGrantsResult& 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 ListRetirableGrantsResult& 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 ListRetirableGrantsResult& 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 ListRetirableGrantsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListRetirableGrantsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListRetirableGrantsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_grants; Aws::String m_nextMarker; bool m_truncated; Aws::String m_requestId; }; } // namespace Model } // namespace KMS } // namespace Aws