/** * 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 cache policies.

See Also:

AWS * API Reference

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

If there are more items in the list than are in this response, this element * is present. It contains the value that you should use in the Marker * field of a subsequent request to continue listing cache policies where you left * off.

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

If there are more items in the list than are in this response, this element * is present. It contains the value that you should use in the Marker * field of a subsequent request to continue listing cache policies where you left * off.

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

If there are more items in the list than are in this response, this element * is present. It contains the value that you should use in the Marker * field of a subsequent request to continue listing cache policies where you left * off.

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

If there are more items in the list than are in this response, this element * is present. It contains the value that you should use in the Marker * field of a subsequent request to continue listing cache policies where you left * off.

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

If there are more items in the list than are in this response, this element * is present. It contains the value that you should use in the Marker * field of a subsequent request to continue listing cache policies where you left * off.

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

If there are more items in the list than are in this response, this element * is present. It contains the value that you should use in the Marker * field of a subsequent request to continue listing cache policies where you left * off.

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

If there are more items in the list than are in this response, this element * is present. It contains the value that you should use in the Marker * field of a subsequent request to continue listing cache policies where you left * off.

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

If there are more items in the list than are in this response, this element * is present. It contains the value that you should use in the Marker * field of a subsequent request to continue listing cache policies where you left * off.

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

The maximum number of cache policies requested.

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

The maximum number of cache policies requested.

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

The maximum number of cache policies requested.

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

The maximum number of cache policies requested.

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

The total number of cache policies returned in the response.

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

The total number of cache policies returned in the response.

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

The total number of cache policies returned in the response.

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

The total number of cache policies returned in the response.

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

Contains the cache policies in the list.

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

Contains the cache policies in the list.

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

Contains the cache policies in the list.

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

Contains the cache policies in the list.

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

Contains the cache policies in the list.

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

Contains the cache policies in the list.

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

Contains the cache policies in the list.

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

Contains the cache policies in the list.

*/ inline CachePolicyList& AddItems(CachePolicySummary&& 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