#[non_exhaustive]pub struct PutPlaybackConfigurationInputBuilder { /* private fields */ }Expand description
A builder for PutPlaybackConfigurationInput.
Implementations§
Source§impl PutPlaybackConfigurationInputBuilder
impl PutPlaybackConfigurationInputBuilder
Sourcepub fn ad_decision_server_url(self, input: impl Into<String>) -> Self
pub fn ad_decision_server_url(self, input: impl Into<String>) -> Self
The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing you can provide a static VAST URL. The maximum length is 25,000 characters.
Sourcepub fn set_ad_decision_server_url(self, input: Option<String>) -> Self
pub fn set_ad_decision_server_url(self, input: Option<String>) -> Self
The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing you can provide a static VAST URL. The maximum length is 25,000 characters.
Sourcepub fn get_ad_decision_server_url(&self) -> &Option<String>
pub fn get_ad_decision_server_url(&self) -> &Option<String>
The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing you can provide a static VAST URL. The maximum length is 25,000 characters.
Sourcepub fn avail_suppression(self, input: AvailSuppression) -> Self
pub fn avail_suppression(self, input: AvailSuppression) -> Self
The configuration for avail suppression, also known as ad suppression. For more information about ad suppression, see Ad Suppression.
Sourcepub fn set_avail_suppression(self, input: Option<AvailSuppression>) -> Self
pub fn set_avail_suppression(self, input: Option<AvailSuppression>) -> Self
The configuration for avail suppression, also known as ad suppression. For more information about ad suppression, see Ad Suppression.
Sourcepub fn get_avail_suppression(&self) -> &Option<AvailSuppression>
pub fn get_avail_suppression(&self) -> &Option<AvailSuppression>
The configuration for avail suppression, also known as ad suppression. For more information about ad suppression, see Ad Suppression.
Sourcepub fn bumper(self, input: Bumper) -> Self
pub fn bumper(self, input: Bumper) -> Self
The configuration for bumpers. Bumpers are short audio or video clips that play at the start or before the end of an ad break. To learn more about bumpers, see Bumpers.
Sourcepub fn set_bumper(self, input: Option<Bumper>) -> Self
pub fn set_bumper(self, input: Option<Bumper>) -> Self
The configuration for bumpers. Bumpers are short audio or video clips that play at the start or before the end of an ad break. To learn more about bumpers, see Bumpers.
Sourcepub fn get_bumper(&self) -> &Option<Bumper>
pub fn get_bumper(&self) -> &Option<Bumper>
The configuration for bumpers. Bumpers are short audio or video clips that play at the start or before the end of an ad break. To learn more about bumpers, see Bumpers.
Sourcepub fn cdn_configuration(self, input: CdnConfiguration) -> Self
pub fn cdn_configuration(self, input: CdnConfiguration) -> Self
The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.
Sourcepub fn set_cdn_configuration(self, input: Option<CdnConfiguration>) -> Self
pub fn set_cdn_configuration(self, input: Option<CdnConfiguration>) -> Self
The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.
Sourcepub fn get_cdn_configuration(&self) -> &Option<CdnConfiguration>
pub fn get_cdn_configuration(&self) -> &Option<CdnConfiguration>
The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.
Sourcepub fn configuration_aliases(
self,
k: impl Into<String>,
v: HashMap<String, String>,
) -> Self
pub fn configuration_aliases( self, k: impl Into<String>, v: HashMap<String, String>, ) -> Self
Adds a key-value pair to configuration_aliases.
To override the contents of this collection use set_configuration_aliases.
The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables.
Sourcepub fn set_configuration_aliases(
self,
input: Option<HashMap<String, HashMap<String, String>>>,
) -> Self
pub fn set_configuration_aliases( self, input: Option<HashMap<String, HashMap<String, String>>>, ) -> Self
The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables.
Sourcepub fn get_configuration_aliases(
&self,
) -> &Option<HashMap<String, HashMap<String, String>>>
pub fn get_configuration_aliases( &self, ) -> &Option<HashMap<String, HashMap<String, String>>>
The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables.
Sourcepub fn dash_configuration(self, input: DashConfigurationForPut) -> Self
pub fn dash_configuration(self, input: DashConfigurationForPut) -> Self
The configuration for DASH content.
Sourcepub fn set_dash_configuration(
self,
input: Option<DashConfigurationForPut>,
) -> Self
pub fn set_dash_configuration( self, input: Option<DashConfigurationForPut>, ) -> Self
The configuration for DASH content.
Sourcepub fn get_dash_configuration(&self) -> &Option<DashConfigurationForPut>
pub fn get_dash_configuration(&self) -> &Option<DashConfigurationForPut>
The configuration for DASH content.
Sourcepub fn insertion_mode(self, input: InsertionMode) -> Self
pub fn insertion_mode(self, input: InsertionMode) -> Self
The setting that controls whether players can use stitched or guided ad insertion. The default, STITCHED_ONLY, forces all player sessions to use stitched (server-side) ad insertion. Choosing PLAYER_SELECT allows players to select either stitched or guided ad insertion at session-initialization time. The default for players that do not specify an insertion mode is stitched.
Sourcepub fn set_insertion_mode(self, input: Option<InsertionMode>) -> Self
pub fn set_insertion_mode(self, input: Option<InsertionMode>) -> Self
The setting that controls whether players can use stitched or guided ad insertion. The default, STITCHED_ONLY, forces all player sessions to use stitched (server-side) ad insertion. Choosing PLAYER_SELECT allows players to select either stitched or guided ad insertion at session-initialization time. The default for players that do not specify an insertion mode is stitched.
Sourcepub fn get_insertion_mode(&self) -> &Option<InsertionMode>
pub fn get_insertion_mode(&self) -> &Option<InsertionMode>
The setting that controls whether players can use stitched or guided ad insertion. The default, STITCHED_ONLY, forces all player sessions to use stitched (server-side) ad insertion. Choosing PLAYER_SELECT allows players to select either stitched or guided ad insertion at session-initialization time. The default for players that do not specify an insertion mode is stitched.
Sourcepub fn live_pre_roll_configuration(
self,
input: LivePreRollConfiguration,
) -> Self
pub fn live_pre_roll_configuration( self, input: LivePreRollConfiguration, ) -> Self
The configuration for pre-roll ad insertion.
Sourcepub fn set_live_pre_roll_configuration(
self,
input: Option<LivePreRollConfiguration>,
) -> Self
pub fn set_live_pre_roll_configuration( self, input: Option<LivePreRollConfiguration>, ) -> Self
The configuration for pre-roll ad insertion.
Sourcepub fn get_live_pre_roll_configuration(
&self,
) -> &Option<LivePreRollConfiguration>
pub fn get_live_pre_roll_configuration( &self, ) -> &Option<LivePreRollConfiguration>
The configuration for pre-roll ad insertion.
Sourcepub fn manifest_processing_rules(self, input: ManifestProcessingRules) -> Self
pub fn manifest_processing_rules(self, input: ManifestProcessingRules) -> Self
The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.
Sourcepub fn set_manifest_processing_rules(
self,
input: Option<ManifestProcessingRules>,
) -> Self
pub fn set_manifest_processing_rules( self, input: Option<ManifestProcessingRules>, ) -> Self
The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.
Sourcepub fn get_manifest_processing_rules(&self) -> &Option<ManifestProcessingRules>
pub fn get_manifest_processing_rules(&self) -> &Option<ManifestProcessingRules>
The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.
Sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The identifier for the playback configuration.
This field is required.Sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The identifier for the playback configuration.
Sourcepub fn personalization_threshold_seconds(self, input: i32) -> Self
pub fn personalization_threshold_seconds(self, input: i32) -> Self
Defines the maximum duration of underfilled ad time (in seconds) allowed in an ad break. If the duration of underfilled ad time exceeds the personalization threshold, then the personalization of the ad break is abandoned and the underlying content is shown. This feature applies to ad replacement in live and VOD streams, rather than ad insertion, because it relies on an underlying content stream. For more information about ad break behavior, including ad replacement and insertion, see Ad Behavior in AWS Elemental MediaTailor.
Sourcepub fn set_personalization_threshold_seconds(self, input: Option<i32>) -> Self
pub fn set_personalization_threshold_seconds(self, input: Option<i32>) -> Self
Defines the maximum duration of underfilled ad time (in seconds) allowed in an ad break. If the duration of underfilled ad time exceeds the personalization threshold, then the personalization of the ad break is abandoned and the underlying content is shown. This feature applies to ad replacement in live and VOD streams, rather than ad insertion, because it relies on an underlying content stream. For more information about ad break behavior, including ad replacement and insertion, see Ad Behavior in AWS Elemental MediaTailor.
Sourcepub fn get_personalization_threshold_seconds(&self) -> &Option<i32>
pub fn get_personalization_threshold_seconds(&self) -> &Option<i32>
Defines the maximum duration of underfilled ad time (in seconds) allowed in an ad break. If the duration of underfilled ad time exceeds the personalization threshold, then the personalization of the ad break is abandoned and the underlying content is shown. This feature applies to ad replacement in live and VOD streams, rather than ad insertion, because it relies on an underlying content stream. For more information about ad break behavior, including ad replacement and insertion, see Ad Behavior in AWS Elemental MediaTailor.
Sourcepub fn slate_ad_url(self, input: impl Into<String>) -> Self
pub fn slate_ad_url(self, input: impl Into<String>) -> Self
The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID configurations. For VPAID, the slate is required because MediaTailor provides it in the slots that are designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.
Sourcepub fn set_slate_ad_url(self, input: Option<String>) -> Self
pub fn set_slate_ad_url(self, input: Option<String>) -> Self
The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID configurations. For VPAID, the slate is required because MediaTailor provides it in the slots that are designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.
Sourcepub fn get_slate_ad_url(&self) -> &Option<String>
pub fn get_slate_ad_url(&self) -> &Option<String>
The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID configurations. For VPAID, the slate is required because MediaTailor provides it in the slots that are designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
The tags to assign to the playback configuration. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.
The tags to assign to the playback configuration. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.
The tags to assign to the playback configuration. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.
Sourcepub fn transcode_profile_name(self, input: impl Into<String>) -> Self
pub fn transcode_profile_name(self, input: impl Into<String>) -> Self
The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.
Sourcepub fn set_transcode_profile_name(self, input: Option<String>) -> Self
pub fn set_transcode_profile_name(self, input: Option<String>) -> Self
The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.
Sourcepub fn get_transcode_profile_name(&self) -> &Option<String>
pub fn get_transcode_profile_name(&self) -> &Option<String>
The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.
Sourcepub fn video_content_source_url(self, input: impl Into<String>) -> Self
pub fn video_content_source_url(self, input: impl Into<String>) -> Self
The URL prefix for the parent manifest for the stream, minus the asset ID. The maximum length is 512 characters.
Sourcepub fn set_video_content_source_url(self, input: Option<String>) -> Self
pub fn set_video_content_source_url(self, input: Option<String>) -> Self
The URL prefix for the parent manifest for the stream, minus the asset ID. The maximum length is 512 characters.
Sourcepub fn get_video_content_source_url(&self) -> &Option<String>
pub fn get_video_content_source_url(&self) -> &Option<String>
The URL prefix for the parent manifest for the stream, minus the asset ID. The maximum length is 512 characters.
Sourcepub fn ad_conditioning_configuration(
self,
input: AdConditioningConfiguration,
) -> Self
pub fn ad_conditioning_configuration( self, input: AdConditioningConfiguration, ) -> Self
The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns, and what priority MediaTailor uses when inserting ads.
Sourcepub fn set_ad_conditioning_configuration(
self,
input: Option<AdConditioningConfiguration>,
) -> Self
pub fn set_ad_conditioning_configuration( self, input: Option<AdConditioningConfiguration>, ) -> Self
The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns, and what priority MediaTailor uses when inserting ads.
Sourcepub fn get_ad_conditioning_configuration(
&self,
) -> &Option<AdConditioningConfiguration>
pub fn get_ad_conditioning_configuration( &self, ) -> &Option<AdConditioningConfiguration>
The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns, and what priority MediaTailor uses when inserting ads.
Sourcepub fn build(self) -> Result<PutPlaybackConfigurationInput, BuildError>
pub fn build(self) -> Result<PutPlaybackConfigurationInput, BuildError>
Consumes the builder and constructs a PutPlaybackConfigurationInput.
Source§impl PutPlaybackConfigurationInputBuilder
impl PutPlaybackConfigurationInputBuilder
Sourcepub async fn send_with(
self,
client: &Client,
) -> Result<PutPlaybackConfigurationOutput, SdkError<PutPlaybackConfigurationError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<PutPlaybackConfigurationOutput, SdkError<PutPlaybackConfigurationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
Source§impl Clone for PutPlaybackConfigurationInputBuilder
impl Clone for PutPlaybackConfigurationInputBuilder
Source§fn clone(&self) -> PutPlaybackConfigurationInputBuilder
fn clone(&self) -> PutPlaybackConfigurationInputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for PutPlaybackConfigurationInputBuilder
impl Default for PutPlaybackConfigurationInputBuilder
Source§fn default() -> PutPlaybackConfigurationInputBuilder
fn default() -> PutPlaybackConfigurationInputBuilder
Source§impl PartialEq for PutPlaybackConfigurationInputBuilder
impl PartialEq for PutPlaybackConfigurationInputBuilder
Source§fn eq(&self, other: &PutPlaybackConfigurationInputBuilder) -> bool
fn eq(&self, other: &PutPlaybackConfigurationInputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PutPlaybackConfigurationInputBuilder
Auto Trait Implementations§
impl Freeze for PutPlaybackConfigurationInputBuilder
impl RefUnwindSafe for PutPlaybackConfigurationInputBuilder
impl Send for PutPlaybackConfigurationInputBuilder
impl Sync for PutPlaybackConfigurationInputBuilder
impl Unpin for PutPlaybackConfigurationInputBuilder
impl UnwindSafe for PutPlaybackConfigurationInputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);