/** * 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 distribution list.

See Also:

AWS * API Reference

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

The value you provided for the Marker request parameter.

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

The value you provided for the Marker request parameter.

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

The value you provided for the Marker request parameter.

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

The value you provided for the Marker request parameter.

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

The value you provided for the Marker request parameter.

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

The value you provided for the Marker request parameter.

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

The value you provided for the Marker request parameter.

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

The value you provided for the Marker request parameter.

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

If IsTruncated is true, this element is present and * contains the value you can use for the Marker request parameter to * continue listing your distributions where they left off.

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

If IsTruncated is true, this element is present and * contains the value you can use for the Marker request parameter to * continue listing your distributions where they left off.

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

If IsTruncated is true, this element is present and * contains the value you can use for the Marker request parameter to * continue listing your distributions where they left off.

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

If IsTruncated is true, this element is present and * contains the value you can use for the Marker request parameter to * continue listing your distributions where they left off.

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

If IsTruncated is true, this element is present and * contains the value you can use for the Marker request parameter to * continue listing your distributions where they left off.

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

If IsTruncated is true, this element is present and * contains the value you can use for the Marker request parameter to * continue listing your distributions where they left off.

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

If IsTruncated is true, this element is present and * contains the value you can use for the Marker request parameter to * continue listing your distributions where they left off.

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

If IsTruncated is true, this element is present and * contains the value you can use for the Marker request parameter to * continue listing your distributions where they left off.

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

The value you provided for the MaxItems request parameter.

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

The value you provided for the MaxItems request parameter.

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

The value you provided for the MaxItems request parameter.

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

The value you provided for the MaxItems request parameter.

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

A flag that indicates whether more distributions remain to be listed. If your * results were truncated, you can make a follow-up pagination request using the * Marker request parameter to retrieve more distributions in the * list.

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

A flag that indicates whether more distributions remain to be listed. If your * results were truncated, you can make a follow-up pagination request using the * Marker request parameter to retrieve more distributions in the * list.

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

A flag that indicates whether more distributions remain to be listed. If your * results were truncated, you can make a follow-up pagination request using the * Marker request parameter to retrieve more distributions in the * list.

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

A flag that indicates whether more distributions remain to be listed. If your * results were truncated, you can make a follow-up pagination request using the * Marker request parameter to retrieve more distributions in the * list.

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

The number of distributions that were created by the current Amazon Web * Services account.

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

The number of distributions that were created by the current Amazon Web * Services account.

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

The number of distributions that were created by the current Amazon Web * Services account.

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

The number of distributions that were created by the current Amazon Web * Services account.

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

A complex type that contains one DistributionSummary element for * each distribution that was created by the current Amazon Web Services * account.

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

A complex type that contains one DistributionSummary element for * each distribution that was created by the current Amazon Web Services * account.

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

A complex type that contains one DistributionSummary element for * each distribution that was created by the current Amazon Web Services * account.

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

A complex type that contains one DistributionSummary element for * each distribution that was created by the current Amazon Web Services * account.

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

A complex type that contains one DistributionSummary element for * each distribution that was created by the current Amazon Web Services * account.

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

A complex type that contains one DistributionSummary element for * each distribution that was created by the current Amazon Web Services * account.

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

A complex type that contains one DistributionSummary element for * each distribution that was created by the current Amazon Web Services * account.

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

A complex type that contains one DistributionSummary element for * each distribution that was created by the current Amazon Web Services * account.

*/ inline DistributionList& AddItems(DistributionSummary&& 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