/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A complex type that controls whether CloudFront caches the response to
* requests using the specified HTTP methods. There are two choices: CloudFront caches responses to CloudFront caches responses to If you
* pick the second choice for your Amazon S3 Origin, you may need to forward
* Access-Control-Request-Method, Access-Control-Request-Headers, and Origin
* headers for the responses to be cached correctly.
GET
and HEAD
* requests.GET
,
* HEAD
, and OPTIONS
requests.See Also:
AWS
* API Reference
The number of HTTP methods for which you want CloudFront to cache responses.
* Valid values are 2
(for caching responses to GET
and
* HEAD
requests) and 3
(for caching responses to
* GET
, HEAD
, and OPTIONS
requests).
The number of HTTP methods for which you want CloudFront to cache responses.
* Valid values are 2
(for caching responses to GET
and
* HEAD
requests) and 3
(for caching responses to
* GET
, HEAD
, and OPTIONS
requests).
The number of HTTP methods for which you want CloudFront to cache responses.
* Valid values are 2
(for caching responses to GET
and
* HEAD
requests) and 3
(for caching responses to
* GET
, HEAD
, and OPTIONS
requests).
The number of HTTP methods for which you want CloudFront to cache responses.
* Valid values are 2
(for caching responses to GET
and
* HEAD
requests) and 3
(for caching responses to
* GET
, HEAD
, and OPTIONS
requests).
A complex type that contains the HTTP methods that you want CloudFront to * cache responses to.
*/ inline const Aws::VectorA complex type that contains the HTTP methods that you want CloudFront to * cache responses to.
*/ inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; } /** *A complex type that contains the HTTP methods that you want CloudFront to * cache responses to.
*/ inline void SetItems(const Aws::VectorA complex type that contains the HTTP methods that you want CloudFront to * cache responses to.
*/ inline void SetItems(Aws::VectorA complex type that contains the HTTP methods that you want CloudFront to * cache responses to.
*/ inline CachedMethods& WithItems(const Aws::VectorA complex type that contains the HTTP methods that you want CloudFront to * cache responses to.
*/ inline CachedMethods& WithItems(Aws::VectorA complex type that contains the HTTP methods that you want CloudFront to * cache responses to.
*/ inline CachedMethods& AddItems(const Method& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; } /** *A complex type that contains the HTTP methods that you want CloudFront to * cache responses to.
*/ inline CachedMethods& AddItems(Method&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; } private: int m_quantity; bool m_quantityHasBeenSet = false; Aws::Vector