Struct aws_sdk_cloudfront::types::builders::ResponseHeadersPolicyAccessControlAllowOriginsBuilder
source · #[non_exhaustive]pub struct ResponseHeadersPolicyAccessControlAllowOriginsBuilder { /* private fields */ }Expand description
A builder for ResponseHeadersPolicyAccessControlAllowOrigins.
Implementations§
source§impl ResponseHeadersPolicyAccessControlAllowOriginsBuilder
impl ResponseHeadersPolicyAccessControlAllowOriginsBuilder
sourcepub fn set_quantity(self, input: Option<i32>) -> Self
pub fn set_quantity(self, input: Option<i32>) -> Self
The number of origins in the list.
sourcepub fn get_quantity(&self) -> &Option<i32>
pub fn get_quantity(&self) -> &Option<i32>
The number of origins in the list.
sourcepub fn items(self, input: impl Into<String>) -> Self
pub fn items(self, input: impl Into<String>) -> Self
Appends an item to items.
To override the contents of this collection use set_items.
The list of origins (domain names). You can specify * to allow all origins.
sourcepub fn set_items(self, input: Option<Vec<String>>) -> Self
pub fn set_items(self, input: Option<Vec<String>>) -> Self
The list of origins (domain names). You can specify * to allow all origins.
sourcepub fn get_items(&self) -> &Option<Vec<String>>
pub fn get_items(&self) -> &Option<Vec<String>>
The list of origins (domain names). You can specify * to allow all origins.
sourcepub fn build(self) -> ResponseHeadersPolicyAccessControlAllowOrigins
pub fn build(self) -> ResponseHeadersPolicyAccessControlAllowOrigins
Consumes the builder and constructs a ResponseHeadersPolicyAccessControlAllowOrigins.
Trait Implementations§
source§impl Clone for ResponseHeadersPolicyAccessControlAllowOriginsBuilder
impl Clone for ResponseHeadersPolicyAccessControlAllowOriginsBuilder
source§fn clone(&self) -> ResponseHeadersPolicyAccessControlAllowOriginsBuilder
fn clone(&self) -> ResponseHeadersPolicyAccessControlAllowOriginsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for ResponseHeadersPolicyAccessControlAllowOriginsBuilder
impl Default for ResponseHeadersPolicyAccessControlAllowOriginsBuilder
source§fn default() -> ResponseHeadersPolicyAccessControlAllowOriginsBuilder
fn default() -> ResponseHeadersPolicyAccessControlAllowOriginsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ResponseHeadersPolicyAccessControlAllowOriginsBuilder
impl PartialEq for ResponseHeadersPolicyAccessControlAllowOriginsBuilder
source§fn eq(
&self,
other: &ResponseHeadersPolicyAccessControlAllowOriginsBuilder
) -> bool
fn eq( &self, other: &ResponseHeadersPolicyAccessControlAllowOriginsBuilder ) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ResponseHeadersPolicyAccessControlAllowOriginsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ResponseHeadersPolicyAccessControlAllowOriginsBuilder
impl Send for ResponseHeadersPolicyAccessControlAllowOriginsBuilder
impl Sync for ResponseHeadersPolicyAccessControlAllowOriginsBuilder
impl Unpin for ResponseHeadersPolicyAccessControlAllowOriginsBuilder
impl UnwindSafe for ResponseHeadersPolicyAccessControlAllowOriginsBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more