/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies a cross-origin access rule for an Amazon S3 bucket.See
* Also:
AWS API
* Reference
Unique identifier for the rule. The value cannot be longer than 255 * characters.
*/ inline const Aws::String& GetID() const{ return m_iD; } /** *Unique identifier for the rule. The value cannot be longer than 255 * characters.
*/ inline bool IDHasBeenSet() const { return m_iDHasBeenSet; } /** *Unique identifier for the rule. The value cannot be longer than 255 * characters.
*/ inline void SetID(const Aws::String& value) { m_iDHasBeenSet = true; m_iD = value; } /** *Unique identifier for the rule. The value cannot be longer than 255 * characters.
*/ inline void SetID(Aws::String&& value) { m_iDHasBeenSet = true; m_iD = std::move(value); } /** *Unique identifier for the rule. The value cannot be longer than 255 * characters.
*/ inline void SetID(const char* value) { m_iDHasBeenSet = true; m_iD.assign(value); } /** *Unique identifier for the rule. The value cannot be longer than 255 * characters.
*/ inline CORSRule& WithID(const Aws::String& value) { SetID(value); return *this;} /** *Unique identifier for the rule. The value cannot be longer than 255 * characters.
*/ inline CORSRule& WithID(Aws::String&& value) { SetID(std::move(value)); return *this;} /** *Unique identifier for the rule. The value cannot be longer than 255 * characters.
*/ inline CORSRule& WithID(const char* value) { SetID(value); return *this;} /** *Headers that are specified in the Access-Control-Request-Headers
* header. These headers are allowed in a preflight OPTIONS request. In response to
* any preflight OPTIONS request, Amazon S3 returns any requested headers that are
* allowed.
Headers that are specified in the Access-Control-Request-Headers
* header. These headers are allowed in a preflight OPTIONS request. In response to
* any preflight OPTIONS request, Amazon S3 returns any requested headers that are
* allowed.
Headers that are specified in the Access-Control-Request-Headers
* header. These headers are allowed in a preflight OPTIONS request. In response to
* any preflight OPTIONS request, Amazon S3 returns any requested headers that are
* allowed.
Headers that are specified in the Access-Control-Request-Headers
* header. These headers are allowed in a preflight OPTIONS request. In response to
* any preflight OPTIONS request, Amazon S3 returns any requested headers that are
* allowed.
Headers that are specified in the Access-Control-Request-Headers
* header. These headers are allowed in a preflight OPTIONS request. In response to
* any preflight OPTIONS request, Amazon S3 returns any requested headers that are
* allowed.
Headers that are specified in the Access-Control-Request-Headers
* header. These headers are allowed in a preflight OPTIONS request. In response to
* any preflight OPTIONS request, Amazon S3 returns any requested headers that are
* allowed.
Headers that are specified in the Access-Control-Request-Headers
* header. These headers are allowed in a preflight OPTIONS request. In response to
* any preflight OPTIONS request, Amazon S3 returns any requested headers that are
* allowed.
Headers that are specified in the Access-Control-Request-Headers
* header. These headers are allowed in a preflight OPTIONS request. In response to
* any preflight OPTIONS request, Amazon S3 returns any requested headers that are
* allowed.
Headers that are specified in the Access-Control-Request-Headers
* header. These headers are allowed in a preflight OPTIONS request. In response to
* any preflight OPTIONS request, Amazon S3 returns any requested headers that are
* allowed.
An HTTP method that you allow the origin to execute. Valid values are
* GET
, PUT
, HEAD
, POST
, and
* DELETE
.
An HTTP method that you allow the origin to execute. Valid values are
* GET
, PUT
, HEAD
, POST
, and
* DELETE
.
An HTTP method that you allow the origin to execute. Valid values are
* GET
, PUT
, HEAD
, POST
, and
* DELETE
.
An HTTP method that you allow the origin to execute. Valid values are
* GET
, PUT
, HEAD
, POST
, and
* DELETE
.
An HTTP method that you allow the origin to execute. Valid values are
* GET
, PUT
, HEAD
, POST
, and
* DELETE
.
An HTTP method that you allow the origin to execute. Valid values are
* GET
, PUT
, HEAD
, POST
, and
* DELETE
.
An HTTP method that you allow the origin to execute. Valid values are
* GET
, PUT
, HEAD
, POST
, and
* DELETE
.
An HTTP method that you allow the origin to execute. Valid values are
* GET
, PUT
, HEAD
, POST
, and
* DELETE
.
An HTTP method that you allow the origin to execute. Valid values are
* GET
, PUT
, HEAD
, POST
, and
* DELETE
.
One or more origins you want customers to be able to access the bucket * from.
*/ inline const Aws::VectorOne or more origins you want customers to be able to access the bucket * from.
*/ inline bool AllowedOriginsHasBeenSet() const { return m_allowedOriginsHasBeenSet; } /** *One or more origins you want customers to be able to access the bucket * from.
*/ inline void SetAllowedOrigins(const Aws::VectorOne or more origins you want customers to be able to access the bucket * from.
*/ inline void SetAllowedOrigins(Aws::VectorOne or more origins you want customers to be able to access the bucket * from.
*/ inline CORSRule& WithAllowedOrigins(const Aws::VectorOne or more origins you want customers to be able to access the bucket * from.
*/ inline CORSRule& WithAllowedOrigins(Aws::VectorOne or more origins you want customers to be able to access the bucket * from.
*/ inline CORSRule& AddAllowedOrigins(const Aws::String& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.push_back(value); return *this; } /** *One or more origins you want customers to be able to access the bucket * from.
*/ inline CORSRule& AddAllowedOrigins(Aws::String&& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.push_back(std::move(value)); return *this; } /** *One or more origins you want customers to be able to access the bucket * from.
*/ inline CORSRule& AddAllowedOrigins(const char* value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.push_back(value); return *this; } /** *One or more headers in the response that you want customers to be able to
* access from their applications (for example, from a JavaScript
* XMLHttpRequest
object).
One or more headers in the response that you want customers to be able to
* access from their applications (for example, from a JavaScript
* XMLHttpRequest
object).
One or more headers in the response that you want customers to be able to
* access from their applications (for example, from a JavaScript
* XMLHttpRequest
object).
One or more headers in the response that you want customers to be able to
* access from their applications (for example, from a JavaScript
* XMLHttpRequest
object).
One or more headers in the response that you want customers to be able to
* access from their applications (for example, from a JavaScript
* XMLHttpRequest
object).
One or more headers in the response that you want customers to be able to
* access from their applications (for example, from a JavaScript
* XMLHttpRequest
object).
One or more headers in the response that you want customers to be able to
* access from their applications (for example, from a JavaScript
* XMLHttpRequest
object).
One or more headers in the response that you want customers to be able to
* access from their applications (for example, from a JavaScript
* XMLHttpRequest
object).
One or more headers in the response that you want customers to be able to
* access from their applications (for example, from a JavaScript
* XMLHttpRequest
object).
The time in seconds that your browser is to cache the preflight response for * the specified resource.
*/ inline int GetMaxAgeSeconds() const{ return m_maxAgeSeconds; } /** *The time in seconds that your browser is to cache the preflight response for * the specified resource.
*/ inline bool MaxAgeSecondsHasBeenSet() const { return m_maxAgeSecondsHasBeenSet; } /** *The time in seconds that your browser is to cache the preflight response for * the specified resource.
*/ inline void SetMaxAgeSeconds(int value) { m_maxAgeSecondsHasBeenSet = true; m_maxAgeSeconds = value; } /** *The time in seconds that your browser is to cache the preflight response for * the specified resource.
*/ inline CORSRule& WithMaxAgeSeconds(int value) { SetMaxAgeSeconds(value); return *this;} private: Aws::String m_iD; bool m_iDHasBeenSet; Aws::Vector