/** * 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 key groups.

See Also:

AWS * API Reference

*/ class KeyGroupList { public: AWS_CLOUDFRONT_API KeyGroupList(); AWS_CLOUDFRONT_API KeyGroupList(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFRONT_API KeyGroupList& 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 key groups.

*/ 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 key groups.

*/ 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 key groups.

*/ 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 key groups.

*/ 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 key groups.

*/ 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 key groups.

*/ inline KeyGroupList& 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 key groups.

*/ inline KeyGroupList& 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 key groups.

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

The maximum number of key groups requested.

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

The maximum number of key groups requested.

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

The maximum number of key groups requested.

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

The maximum number of key groups requested.

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

The number of key groups returned in the response.

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

The number of key groups returned in the response.

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

The number of key groups returned in the response.

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

The number of key groups returned in the response.

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

A list of key groups.

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

A list of key groups.

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

A list of key groups.

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

A list of key groups.

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

A list of key groups.

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

A list of key groups.

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

A list of key groups.

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

A list of key groups.

*/ inline KeyGroupList& AddItems(KeyGroupSummary&& 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