/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A complex type that controls which HTTP methods CloudFront processes and
* forwards to your Amazon S3 bucket or your custom origin. There are three
* choices: CloudFront forwards only CloudFront forwards only
* CloudFront forwards If you pick
* the third choice, you may need to restrict access to your Amazon S3 bucket or to
* your custom origin so users can't perform operations that you don't want them
* to. For example, you might not want users to have permissions to delete objects
* from your origin.
GET
and
* HEAD
requests.GET
, HEAD
, and OPTIONS
requests.GET, HEAD, OPTIONS, PUT, PATCH,
* POST
, and DELETE
requests.See Also:
AWS
* API Reference
The number of HTTP methods that you want CloudFront to forward to your
* origin. Valid values are 2 (for GET
and HEAD
* requests), 3 (for GET
, HEAD
, and OPTIONS
* requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST
, and
* DELETE
requests).
The number of HTTP methods that you want CloudFront to forward to your
* origin. Valid values are 2 (for GET
and HEAD
* requests), 3 (for GET
, HEAD
, and OPTIONS
* requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST
, and
* DELETE
requests).
The number of HTTP methods that you want CloudFront to forward to your
* origin. Valid values are 2 (for GET
and HEAD
* requests), 3 (for GET
, HEAD
, and OPTIONS
* requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST
, and
* DELETE
requests).
The number of HTTP methods that you want CloudFront to forward to your
* origin. Valid values are 2 (for GET
and HEAD
* requests), 3 (for GET
, HEAD
, and OPTIONS
* requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST
, and
* DELETE
requests).
A complex type that contains the HTTP methods that you want CloudFront to * process and forward to your origin.
*/ inline const Aws::VectorA complex type that contains the HTTP methods that you want CloudFront to * process and forward to your origin.
*/ inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; } /** *A complex type that contains the HTTP methods that you want CloudFront to * process and forward to your origin.
*/ inline void SetItems(const Aws::VectorA complex type that contains the HTTP methods that you want CloudFront to * process and forward to your origin.
*/ inline void SetItems(Aws::VectorA complex type that contains the HTTP methods that you want CloudFront to * process and forward to your origin.
*/ inline AllowedMethods& WithItems(const Aws::VectorA complex type that contains the HTTP methods that you want CloudFront to * process and forward to your origin.
*/ inline AllowedMethods& WithItems(Aws::VectorA complex type that contains the HTTP methods that you want CloudFront to * process and forward to your origin.
*/ inline AllowedMethods& 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 * process and forward to your origin.
*/ inline AllowedMethods& AddItems(Method&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; } inline const CachedMethods& GetCachedMethods() const{ return m_cachedMethods; } inline bool CachedMethodsHasBeenSet() const { return m_cachedMethodsHasBeenSet; } inline void SetCachedMethods(const CachedMethods& value) { m_cachedMethodsHasBeenSet = true; m_cachedMethods = value; } inline void SetCachedMethods(CachedMethods&& value) { m_cachedMethodsHasBeenSet = true; m_cachedMethods = std::move(value); } inline AllowedMethods& WithCachedMethods(const CachedMethods& value) { SetCachedMethods(value); return *this;} inline AllowedMethods& WithCachedMethods(CachedMethods&& value) { SetCachedMethods(std::move(value)); return *this;} private: int m_quantity; bool m_quantityHasBeenSet = false; Aws::Vector