/** * 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 { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudFront { namespace Model { /** *

A list of public keys that you can use with signed * URLs and signed cookies, or with field-level * encryption.

See Also:

AWS * API Reference

*/ class PublicKeyList { public: AWS_CLOUDFRONT_API PublicKeyList(); AWS_CLOUDFRONT_API PublicKeyList(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFRONT_API PublicKeyList& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

If there are more elements to be listed, this element is present and contains * the value that you can use for the Marker request parameter to * continue listing your public keys where you left off.

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

If there are more elements to be listed, this element is present and contains * the value that you can use for the Marker request parameter to * continue listing your public keys where you left off.

*/ inline bool NextMarkerHasBeenSet() const { return m_nextMarkerHasBeenSet; } /** *

If there are more elements to be listed, this element is present and contains * the value that you can use for the Marker request parameter to * continue listing your public keys where you left off.

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

If there are more elements to be listed, this element is present and contains * the value that you can use for the Marker request parameter to * continue listing your public keys where you left off.

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

If there are more elements to be listed, this element is present and contains * the value that you can use for the Marker request parameter to * continue listing your public keys where you left off.

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

If there are more elements to be listed, this element is present and contains * the value that you can use for the Marker request parameter to * continue listing your public keys where you left off.

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

If there are more elements to be listed, this element is present and contains * the value that you can use for the Marker request parameter to * continue listing your public keys where you left off.

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

If there are more elements to be listed, this element is present and contains * the value that you can use for the Marker request parameter to * continue listing your public keys where you left off.

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

The maximum number of public keys you want in the response.

*/ inline int GetMaxItems() const{ return m_maxItems; } /** *

The maximum number of public keys you want in the response.

*/ inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; } /** *

The maximum number of public keys you want in the response.

*/ inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; } /** *

The maximum number of public keys you want in the response.

*/ inline PublicKeyList& WithMaxItems(int value) { SetMaxItems(value); return *this;} /** *

The number of public keys in the list.

*/ inline int GetQuantity() const{ return m_quantity; } /** *

The number of public keys in the list.

*/ inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; } /** *

The number of public keys in the list.

*/ inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; } /** *

The number of public keys in the list.

*/ inline PublicKeyList& WithQuantity(int value) { SetQuantity(value); return *this;} /** *

A list of public keys.

*/ inline const Aws::Vector& GetItems() const{ return m_items; } /** *

A list of public keys.

*/ inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; } /** *

A list of public keys.

*/ inline void SetItems(const Aws::Vector& value) { m_itemsHasBeenSet = true; m_items = value; } /** *

A list of public keys.

*/ inline void SetItems(Aws::Vector&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); } /** *

A list of public keys.

*/ inline PublicKeyList& WithItems(const Aws::Vector& value) { SetItems(value); return *this;} /** *

A list of public keys.

*/ inline PublicKeyList& WithItems(Aws::Vector&& value) { SetItems(std::move(value)); return *this;} /** *

A list of public keys.

*/ inline PublicKeyList& AddItems(const PublicKeySummary& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; } /** *

A list of public keys.

*/ inline PublicKeyList& AddItems(PublicKeySummary&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; } private: Aws::String m_nextMarker; bool m_nextMarkerHasBeenSet = false; int m_maxItems; bool m_maxItemsHasBeenSet = false; int m_quantity; bool m_quantityHasBeenSet = false; Aws::Vector m_items; bool m_itemsHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws