/** * 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 CloudFront origin access controls.

See Also:

AWS * API Reference

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

The value of the Marker field that was provided in the * request.

*/ inline const Aws::String& GetMarker() const{ return m_marker; } /** *

The value of the Marker field that was provided in the * request.

*/ inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; } /** *

The value of the Marker field that was provided in the * request.

*/ inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } /** *

The value of the Marker field that was provided in the * request.

*/ inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } /** *

The value of the Marker field that was provided in the * request.

*/ inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } /** *

The value of the Marker field that was provided in the * request.

*/ inline OriginAccessControlList& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** *

The value of the Marker field that was provided in the * request.

*/ inline OriginAccessControlList& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} /** *

The value of the Marker field that was provided in the * request.

*/ inline OriginAccessControlList& WithMarker(const char* value) { SetMarker(value); return *this;} /** *

If there are more items in the list than are in this response, this element * is present. It contains the value to use in the Marker field of * another request to continue listing origin access controls.

*/ 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 to use in the Marker field of * another request to continue listing origin access controls.

*/ 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 to use in the Marker field of * another request to continue listing origin access controls.

*/ 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 to use in the Marker field of * another request to continue listing origin access controls.

*/ 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 to use in the Marker field of * another request to continue listing origin access controls.

*/ 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 to use in the Marker field of * another request to continue listing origin access controls.

*/ inline OriginAccessControlList& 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 to use in the Marker field of * another request to continue listing origin access controls.

*/ inline OriginAccessControlList& 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 to use in the Marker field of * another request to continue listing origin access controls.

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

The maximum number of origin access controls requested.

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

The maximum number of origin access controls requested.

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

The maximum number of origin access controls requested.

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

The maximum number of origin access controls requested.

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

If there are more items in the list than are in this response, this value is * true.

*/ inline bool GetIsTruncated() const{ return m_isTruncated; } /** *

If there are more items in the list than are in this response, this value is * true.

*/ inline bool IsTruncatedHasBeenSet() const { return m_isTruncatedHasBeenSet; } /** *

If there are more items in the list than are in this response, this value is * true.

*/ inline void SetIsTruncated(bool value) { m_isTruncatedHasBeenSet = true; m_isTruncated = value; } /** *

If there are more items in the list than are in this response, this value is * true.

*/ inline OriginAccessControlList& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;} /** *

The number of origin access controls returned in the response.

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

The number of origin access controls returned in the response.

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

The number of origin access controls returned in the response.

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

The number of origin access controls returned in the response.

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

Contains the origin access controls in the list.

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

Contains the origin access controls in the list.

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

Contains the origin access controls in the list.

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

Contains the origin access controls in the list.

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

Contains the origin access controls in the list.

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

Contains the origin access controls in the list.

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

Contains the origin access controls in the list.

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

Contains the origin access controls in the list.

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