Struct aws_sdk_ivs::operation::create_playback_restriction_policy::builders::CreatePlaybackRestrictionPolicyInputBuilder
source · #[non_exhaustive]pub struct CreatePlaybackRestrictionPolicyInputBuilder { /* private fields */ }
Expand description
A builder for CreatePlaybackRestrictionPolicyInput
.
Implementations§
source§impl CreatePlaybackRestrictionPolicyInputBuilder
impl CreatePlaybackRestrictionPolicyInputBuilder
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
.
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.
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.
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<CreatePlaybackRestrictionPolicyInput, BuildError>
pub fn build(self) -> Result<CreatePlaybackRestrictionPolicyInput, BuildError>
Consumes the builder and constructs a CreatePlaybackRestrictionPolicyInput
.
source§impl CreatePlaybackRestrictionPolicyInputBuilder
impl CreatePlaybackRestrictionPolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreatePlaybackRestrictionPolicyOutput, SdkError<CreatePlaybackRestrictionPolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreatePlaybackRestrictionPolicyOutput, SdkError<CreatePlaybackRestrictionPolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreatePlaybackRestrictionPolicyInputBuilder
impl Clone for CreatePlaybackRestrictionPolicyInputBuilder
source§fn clone(&self) -> CreatePlaybackRestrictionPolicyInputBuilder
fn clone(&self) -> CreatePlaybackRestrictionPolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreatePlaybackRestrictionPolicyInputBuilder
impl Default for CreatePlaybackRestrictionPolicyInputBuilder
source§fn default() -> CreatePlaybackRestrictionPolicyInputBuilder
fn default() -> CreatePlaybackRestrictionPolicyInputBuilder
source§impl PartialEq for CreatePlaybackRestrictionPolicyInputBuilder
impl PartialEq for CreatePlaybackRestrictionPolicyInputBuilder
source§fn eq(&self, other: &CreatePlaybackRestrictionPolicyInputBuilder) -> bool
fn eq(&self, other: &CreatePlaybackRestrictionPolicyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreatePlaybackRestrictionPolicyInputBuilder
Auto Trait Implementations§
impl Freeze for CreatePlaybackRestrictionPolicyInputBuilder
impl RefUnwindSafe for CreatePlaybackRestrictionPolicyInputBuilder
impl Send for CreatePlaybackRestrictionPolicyInputBuilder
impl Sync for CreatePlaybackRestrictionPolicyInputBuilder
impl Unpin for CreatePlaybackRestrictionPolicyInputBuilder
impl UnwindSafe for CreatePlaybackRestrictionPolicyInputBuilder
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