Struct aws_sdk_cloudfront::types::builders::RestrictionsBuilder
source · #[non_exhaustive]pub struct RestrictionsBuilder { /* private fields */ }
Expand description
A builder for Restrictions
.
Implementations§
source§impl RestrictionsBuilder
impl RestrictionsBuilder
sourcepub fn geo_restriction(self, input: GeoRestriction) -> Self
pub fn geo_restriction(self, input: GeoRestriction) -> Self
A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind
GeoIP databases.
sourcepub fn set_geo_restriction(self, input: Option<GeoRestriction>) -> Self
pub fn set_geo_restriction(self, input: Option<GeoRestriction>) -> Self
A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind
GeoIP databases.
sourcepub fn get_geo_restriction(&self) -> &Option<GeoRestriction>
pub fn get_geo_restriction(&self) -> &Option<GeoRestriction>
A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind
GeoIP databases.
sourcepub fn build(self) -> Restrictions
pub fn build(self) -> Restrictions
Consumes the builder and constructs a Restrictions
.
Trait Implementations§
source§impl Clone for RestrictionsBuilder
impl Clone for RestrictionsBuilder
source§fn clone(&self) -> RestrictionsBuilder
fn clone(&self) -> RestrictionsBuilder
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 Debug for RestrictionsBuilder
impl Debug for RestrictionsBuilder
source§impl Default for RestrictionsBuilder
impl Default for RestrictionsBuilder
source§fn default() -> RestrictionsBuilder
fn default() -> RestrictionsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RestrictionsBuilder
impl PartialEq for RestrictionsBuilder
source§fn eq(&self, other: &RestrictionsBuilder) -> bool
fn eq(&self, other: &RestrictionsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RestrictionsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for RestrictionsBuilder
impl Send for RestrictionsBuilder
impl Sync for RestrictionsBuilder
impl Unpin for RestrictionsBuilder
impl UnwindSafe for RestrictionsBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.