Struct bonsaidb::keystorage::s3::aws_sdk_s3::types::builders::CorsRuleBuilder
pub struct CorsRuleBuilder { /* private fields */ }
Expand description
A builder for CorsRule
.
Implementations§
§impl CorsRuleBuilder
impl CorsRuleBuilder
pub fn id(self, input: impl Into<String>) -> CorsRuleBuilder
pub fn id(self, input: impl Into<String>) -> CorsRuleBuilder
Unique identifier for the rule. The value cannot be longer than 255 characters.
pub fn set_id(self, input: Option<String>) -> CorsRuleBuilder
pub fn set_id(self, input: Option<String>) -> CorsRuleBuilder
Unique identifier for the rule. The value cannot be longer than 255 characters.
pub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
Unique identifier for the rule. The value cannot be longer than 255 characters.
pub fn allowed_headers(self, input: impl Into<String>) -> CorsRuleBuilder
pub fn allowed_headers(self, input: impl Into<String>) -> CorsRuleBuilder
Appends an item to allowed_headers
.
To override the contents of this collection use set_allowed_headers
.
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.
pub fn set_allowed_headers(
self,
input: Option<Vec<String, Global>>
) -> CorsRuleBuilder
pub fn set_allowed_headers( self, input: Option<Vec<String, Global>> ) -> CorsRuleBuilder
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.
pub fn get_allowed_headers(&self) -> &Option<Vec<String, Global>>
pub fn get_allowed_headers(&self) -> &Option<Vec<String, Global>>
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.
pub fn allowed_methods(self, input: impl Into<String>) -> CorsRuleBuilder
pub fn allowed_methods(self, input: impl Into<String>) -> CorsRuleBuilder
Appends an item to allowed_methods
.
To override the contents of this collection use set_allowed_methods
.
An HTTP method that you allow the origin to execute. Valid values are GET
, PUT
, HEAD
, POST
, and DELETE
.
pub fn set_allowed_methods(
self,
input: Option<Vec<String, Global>>
) -> CorsRuleBuilder
pub fn set_allowed_methods( self, input: Option<Vec<String, Global>> ) -> CorsRuleBuilder
An HTTP method that you allow the origin to execute. Valid values are GET
, PUT
, HEAD
, POST
, and DELETE
.
pub fn get_allowed_methods(&self) -> &Option<Vec<String, Global>>
pub fn get_allowed_methods(&self) -> &Option<Vec<String, Global>>
An HTTP method that you allow the origin to execute. Valid values are GET
, PUT
, HEAD
, POST
, and DELETE
.
pub fn allowed_origins(self, input: impl Into<String>) -> CorsRuleBuilder
pub fn allowed_origins(self, input: impl Into<String>) -> CorsRuleBuilder
Appends an item to allowed_origins
.
To override the contents of this collection use set_allowed_origins
.
One or more origins you want customers to be able to access the bucket from.
pub fn set_allowed_origins(
self,
input: Option<Vec<String, Global>>
) -> CorsRuleBuilder
pub fn set_allowed_origins( self, input: Option<Vec<String, Global>> ) -> CorsRuleBuilder
One or more origins you want customers to be able to access the bucket from.
pub fn get_allowed_origins(&self) -> &Option<Vec<String, Global>>
pub fn get_allowed_origins(&self) -> &Option<Vec<String, Global>>
One or more origins you want customers to be able to access the bucket from.
pub fn expose_headers(self, input: impl Into<String>) -> CorsRuleBuilder
pub fn expose_headers(self, input: impl Into<String>) -> CorsRuleBuilder
Appends an item to expose_headers
.
To override the contents of this collection use set_expose_headers
.
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).
pub fn set_expose_headers(
self,
input: Option<Vec<String, Global>>
) -> CorsRuleBuilder
pub fn set_expose_headers( self, input: Option<Vec<String, Global>> ) -> CorsRuleBuilder
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).
pub fn get_expose_headers(&self) -> &Option<Vec<String, Global>>
pub fn get_expose_headers(&self) -> &Option<Vec<String, Global>>
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).
pub fn max_age_seconds(self, input: i32) -> CorsRuleBuilder
pub fn max_age_seconds(self, input: i32) -> CorsRuleBuilder
The time in seconds that your browser is to cache the preflight response for the specified resource.
pub fn set_max_age_seconds(self, input: Option<i32>) -> CorsRuleBuilder
pub fn set_max_age_seconds(self, input: Option<i32>) -> CorsRuleBuilder
The time in seconds that your browser is to cache the preflight response for the specified resource.
pub fn get_max_age_seconds(&self) -> &Option<i32>
pub fn get_max_age_seconds(&self) -> &Option<i32>
The time in seconds that your browser is to cache the preflight response for the specified resource.
Trait Implementations§
§impl Clone for CorsRuleBuilder
impl Clone for CorsRuleBuilder
§fn clone(&self) -> CorsRuleBuilder
fn clone(&self) -> CorsRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for CorsRuleBuilder
impl Debug for CorsRuleBuilder
§impl Default for CorsRuleBuilder
impl Default for CorsRuleBuilder
§fn default() -> CorsRuleBuilder
fn default() -> CorsRuleBuilder
§impl PartialEq<CorsRuleBuilder> for CorsRuleBuilder
impl PartialEq<CorsRuleBuilder> for CorsRuleBuilder
§fn eq(&self, other: &CorsRuleBuilder) -> bool
fn eq(&self, other: &CorsRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.