/** * 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 { /** *

Lists the origin access identities for CloudFront.Send a GET * request to the /CloudFront API * version/origin-access-identity/cloudfront resource. The response * includes a CloudFrontOriginAccessIdentityList element with zero or * more CloudFrontOriginAccessIdentitySummary child elements. By * default, your entire list of origin access identities is returned in one single * page. If the list is long, you can paginate it using the MaxItems * and Marker parameters.

See Also:

AWS * API Reference

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

Use this when paginating results to indicate where to begin in your list of * origin access identities. The results include identities in the list that occur * after the marker. To get the next page of results, set the Marker * to the value of the NextMarker from the current page's response * (which is also the ID of the last identity on that page).

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

Use this when paginating results to indicate where to begin in your list of * origin access identities. The results include identities in the list that occur * after the marker. To get the next page of results, set the Marker * to the value of the NextMarker from the current page's response * (which is also the ID of the last identity on that page).

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

Use this when paginating results to indicate where to begin in your list of * origin access identities. The results include identities in the list that occur * after the marker. To get the next page of results, set the Marker * to the value of the NextMarker from the current page's response * (which is also the ID of the last identity on that page).

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

Use this when paginating results to indicate where to begin in your list of * origin access identities. The results include identities in the list that occur * after the marker. To get the next page of results, set the Marker * to the value of the NextMarker from the current page's response * (which is also the ID of the last identity on that page).

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

Use this when paginating results to indicate where to begin in your list of * origin access identities. The results include identities in the list that occur * after the marker. To get the next page of results, set the Marker * to the value of the NextMarker from the current page's response * (which is also the ID of the last identity on that page).

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

Use this when paginating results to indicate where to begin in your list of * origin access identities. The results include identities in the list that occur * after the marker. To get the next page of results, set the Marker * to the value of the NextMarker from the current page's response * (which is also the ID of the last identity on that page).

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

Use this when paginating results to indicate where to begin in your list of * origin access identities. The results include identities in the list that occur * after the marker. To get the next page of results, set the Marker * to the value of the NextMarker from the current page's response * (which is also the ID of the last identity on that page).

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

Use this when paginating results to indicate where to begin in your list of * origin access identities. The results include identities in the list that occur * after the marker. To get the next page of results, set the Marker * to the value of the NextMarker from the current page's response * (which is also the ID of the last identity on that page).

*/ inline CloudFrontOriginAccessIdentityList& 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 origin access identities 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 origin access identities 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 origin access identities 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 origin access identities 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 origin access identities 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 origin access identities where they left off.

*/ inline CloudFrontOriginAccessIdentityList& 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 origin access identities where they left off.

*/ inline CloudFrontOriginAccessIdentityList& 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 origin access identities where they left off.

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

The maximum number of origin access identities you want in the response * body.

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

The maximum number of origin access identities you want in the response * body.

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

The maximum number of origin access identities you want in the response * body.

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

The maximum number of origin access identities you want in the response * body.

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

A flag that indicates whether more origin access identities 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 items * in the list.

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

A flag that indicates whether more origin access identities 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 items * in the list.

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

A flag that indicates whether more origin access identities 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 items * in the list.

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

A flag that indicates whether more origin access identities 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 items * in the list.

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

The number of CloudFront origin access identities that were created by the * current Amazon Web Services account.

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

The number of CloudFront origin access identities that were created by the * current Amazon Web Services account.

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

The number of CloudFront origin access identities that were created by the * current Amazon Web Services account.

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

The number of CloudFront origin access identities that were created by the * current Amazon Web Services account.

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

A complex type that contains one * CloudFrontOriginAccessIdentitySummary element for each origin * access identity 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 * CloudFrontOriginAccessIdentitySummary element for each origin * access identity that was created by the current Amazon Web Services account.

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

A complex type that contains one * CloudFrontOriginAccessIdentitySummary element for each origin * access identity 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 * CloudFrontOriginAccessIdentitySummary element for each origin * access identity 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 * CloudFrontOriginAccessIdentitySummary element for each origin * access identity that was created by the current Amazon Web Services account.

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

A complex type that contains one * CloudFrontOriginAccessIdentitySummary element for each origin * access identity that was created by the current Amazon Web Services account.

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

A complex type that contains one * CloudFrontOriginAccessIdentitySummary element for each origin * access identity that was created by the current Amazon Web Services account.

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

A complex type that contains one * CloudFrontOriginAccessIdentitySummary element for each origin * access identity that was created by the current Amazon Web Services account.

*/ inline CloudFrontOriginAccessIdentityList& AddItems(CloudFrontOriginAccessIdentitySummary&& 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