#[non_exhaustive]pub struct PlaybackRestrictionPolicyBuilder { /* private fields */ }
Expand description
A builder for PlaybackRestrictionPolicy
.
Implementations§
source§impl PlaybackRestrictionPolicyBuilder
impl PlaybackRestrictionPolicyBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
Playback-restriction-policy ARN
This field is required.sourcepub fn allowed_countries(self, input: impl Into<String>) -> Self
pub fn allowed_countries(self, input: impl Into<String>) -> Self
Appends an item to allowed_countries
.
To override the contents of this collection use set_allowed_countries
.
A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
sourcepub fn set_allowed_countries(self, input: Option<Vec<String>>) -> Self
pub fn set_allowed_countries(self, input: Option<Vec<String>>) -> Self
A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
sourcepub fn get_allowed_countries(&self) -> &Option<Vec<String>>
pub fn get_allowed_countries(&self) -> &Option<Vec<String>>
A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
sourcepub fn allowed_origins(self, input: impl Into<String>) -> Self
pub fn allowed_origins(self, input: impl Into<String>) -> Self
Appends an item to allowed_origins
.
To override the contents of this collection use set_allowed_origins
.
A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Default: All origins (an empty array).
sourcepub fn set_allowed_origins(self, input: Option<Vec<String>>) -> Self
pub fn set_allowed_origins(self, input: Option<Vec<String>>) -> Self
A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Default: All origins (an empty array).
sourcepub fn get_allowed_origins(&self) -> &Option<Vec<String>>
pub fn get_allowed_origins(&self) -> &Option<Vec<String>>
A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Default: All origins (an empty array).
sourcepub fn enable_strict_origin_enforcement(self, input: bool) -> Self
pub fn enable_strict_origin_enforcement(self, input: bool) -> Self
Whether channel playback is constrained by origin site. Default: false
.
sourcepub fn set_enable_strict_origin_enforcement(self, input: Option<bool>) -> Self
pub fn set_enable_strict_origin_enforcement(self, input: Option<bool>) -> Self
Whether channel playback is constrained by origin site. Default: false
.
sourcepub fn get_enable_strict_origin_enforcement(&self) -> &Option<bool>
pub fn get_enable_strict_origin_enforcement(&self) -> &Option<bool>
Whether channel playback is constrained by origin site. Default: false
.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
Playback-restriction-policy name. The value does not need to be unique.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
Playback-restriction-policy name. The value does not need to be unique.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
Playback-restriction-policy name. The value does not need to be unique.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value)
. See Tagging Amazon Web Services Resources for more information, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.
Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value)
. See Tagging Amazon Web Services Resources for more information, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.
Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value)
. See Tagging Amazon Web Services Resources for more information, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.
sourcepub fn build(self) -> Result<PlaybackRestrictionPolicy, BuildError>
pub fn build(self) -> Result<PlaybackRestrictionPolicy, BuildError>
Consumes the builder and constructs a PlaybackRestrictionPolicy
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PlaybackRestrictionPolicyBuilder
impl Clone for PlaybackRestrictionPolicyBuilder
source§fn clone(&self) -> PlaybackRestrictionPolicyBuilder
fn clone(&self) -> PlaybackRestrictionPolicyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PlaybackRestrictionPolicyBuilder
impl Default for PlaybackRestrictionPolicyBuilder
source§fn default() -> PlaybackRestrictionPolicyBuilder
fn default() -> PlaybackRestrictionPolicyBuilder
source§impl PartialEq for PlaybackRestrictionPolicyBuilder
impl PartialEq for PlaybackRestrictionPolicyBuilder
source§fn eq(&self, other: &PlaybackRestrictionPolicyBuilder) -> bool
fn eq(&self, other: &PlaybackRestrictionPolicyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PlaybackRestrictionPolicyBuilder
Auto Trait Implementations§
impl Freeze for PlaybackRestrictionPolicyBuilder
impl RefUnwindSafe for PlaybackRestrictionPolicyBuilder
impl Send for PlaybackRestrictionPolicyBuilder
impl Sync for PlaybackRestrictionPolicyBuilder
impl Unpin for PlaybackRestrictionPolicyBuilder
impl UnwindSafe for PlaybackRestrictionPolicyBuilder
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
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more