/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudFront { namespace Model { /** *

This field is deprecated. We recommend that you use a cache policy or an * origin request policy instead of this field.

If you want to include query * strings in the cache key, use QueryStringsConfig in a cache policy. * See CachePolicy.

If you want to send query strings to the * origin but not include them in the cache key, use * QueryStringsConfig in an origin request policy. See * OriginRequestPolicy.

A complex type that contains * information about the query string parameters that you want CloudFront to use * for caching for a cache behavior.

See Also:

AWS * API Reference

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

The number of whitelisted query string parameters for a cache * behavior.

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

The number of whitelisted query string parameters for a cache * behavior.

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

The number of whitelisted query string parameters for a cache * behavior.

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

The number of whitelisted query string parameters for a cache * behavior.

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

A list that contains the query string parameters that you want CloudFront to * use as a basis for caching for a cache behavior. If Quantity is 0, * you can omit Items.

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

A list that contains the query string parameters that you want CloudFront to * use as a basis for caching for a cache behavior. If Quantity is 0, * you can omit Items.

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

A list that contains the query string parameters that you want CloudFront to * use as a basis for caching for a cache behavior. If Quantity is 0, * you can omit Items.

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

A list that contains the query string parameters that you want CloudFront to * use as a basis for caching for a cache behavior. If Quantity is 0, * you can omit Items.

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

A list that contains the query string parameters that you want CloudFront to * use as a basis for caching for a cache behavior. If Quantity is 0, * you can omit Items.

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

A list that contains the query string parameters that you want CloudFront to * use as a basis for caching for a cache behavior. If Quantity is 0, * you can omit Items.

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

A list that contains the query string parameters that you want CloudFront to * use as a basis for caching for a cache behavior. If Quantity is 0, * you can omit Items.

*/ inline QueryStringCacheKeys& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; } /** *

A list that contains the query string parameters that you want CloudFront to * use as a basis for caching for a cache behavior. If Quantity is 0, * you can omit Items.

*/ inline QueryStringCacheKeys& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; } /** *

A list that contains the query string parameters that you want CloudFront to * use as a basis for caching for a cache behavior. If Quantity is 0, * you can omit Items.

*/ inline QueryStringCacheKeys& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; } private: int m_quantity; bool m_quantityHasBeenSet = false; Aws::Vector m_items; bool m_itemsHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws