#[non_exhaustive]pub struct InputBuilder { /* private fields */ }
Expand description
A builder for Input
.
Implementations§
Source§impl InputBuilder
impl InputBuilder
Sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Unique ARN of the input (generated, immutable).
Sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Unique ARN of the input (generated, immutable).
Sourcepub fn attached_channels(self, input: impl Into<String>) -> Self
pub fn attached_channels(self, input: impl Into<String>) -> Self
Appends an item to attached_channels
.
To override the contents of this collection use set_attached_channels
.
A list of channel IDs that that input is attached to (currently an input can only be attached to one channel).
Sourcepub fn set_attached_channels(self, input: Option<Vec<String>>) -> Self
pub fn set_attached_channels(self, input: Option<Vec<String>>) -> Self
A list of channel IDs that that input is attached to (currently an input can only be attached to one channel).
Sourcepub fn get_attached_channels(&self) -> &Option<Vec<String>>
pub fn get_attached_channels(&self) -> &Option<Vec<String>>
A list of channel IDs that that input is attached to (currently an input can only be attached to one channel).
Sourcepub fn destinations(self, input: InputDestination) -> Self
pub fn destinations(self, input: InputDestination) -> Self
Appends an item to destinations
.
To override the contents of this collection use set_destinations
.
A list of the destinations of the input (PUSH-type).
Sourcepub fn set_destinations(self, input: Option<Vec<InputDestination>>) -> Self
pub fn set_destinations(self, input: Option<Vec<InputDestination>>) -> Self
A list of the destinations of the input (PUSH-type).
Sourcepub fn get_destinations(&self) -> &Option<Vec<InputDestination>>
pub fn get_destinations(&self) -> &Option<Vec<InputDestination>>
A list of the destinations of the input (PUSH-type).
Sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The generated ID of the input (unique for user account, immutable).
Sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The generated ID of the input (unique for user account, immutable).
Sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The generated ID of the input (unique for user account, immutable).
Sourcepub fn input_class(self, input: InputClass) -> Self
pub fn input_class(self, input: InputClass) -> Self
STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, both sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; the second source will always be ignored, even if the first source fails. SINGLE_PIPELINE - You can connect only one source to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. If the ChannelClass is STANDARD, this value is not valid because the channel requires two sources in the input.
Sourcepub fn set_input_class(self, input: Option<InputClass>) -> Self
pub fn set_input_class(self, input: Option<InputClass>) -> Self
STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, both sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; the second source will always be ignored, even if the first source fails. SINGLE_PIPELINE - You can connect only one source to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. If the ChannelClass is STANDARD, this value is not valid because the channel requires two sources in the input.
Sourcepub fn get_input_class(&self) -> &Option<InputClass>
pub fn get_input_class(&self) -> &Option<InputClass>
STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, both sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; the second source will always be ignored, even if the first source fails. SINGLE_PIPELINE - You can connect only one source to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. If the ChannelClass is STANDARD, this value is not valid because the channel requires two sources in the input.
Sourcepub fn input_devices(self, input: InputDeviceSettings) -> Self
pub fn input_devices(self, input: InputDeviceSettings) -> Self
Appends an item to input_devices
.
To override the contents of this collection use set_input_devices
.
Settings for the input devices.
Sourcepub fn set_input_devices(self, input: Option<Vec<InputDeviceSettings>>) -> Self
pub fn set_input_devices(self, input: Option<Vec<InputDeviceSettings>>) -> Self
Settings for the input devices.
Sourcepub fn get_input_devices(&self) -> &Option<Vec<InputDeviceSettings>>
pub fn get_input_devices(&self) -> &Option<Vec<InputDeviceSettings>>
Settings for the input devices.
Sourcepub fn input_partner_ids(self, input: impl Into<String>) -> Self
pub fn input_partner_ids(self, input: impl Into<String>) -> Self
Appends an item to input_partner_ids
.
To override the contents of this collection use set_input_partner_ids
.
A list of IDs for all Inputs which are partners of this one.
Sourcepub fn set_input_partner_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_input_partner_ids(self, input: Option<Vec<String>>) -> Self
A list of IDs for all Inputs which are partners of this one.
Sourcepub fn get_input_partner_ids(&self) -> &Option<Vec<String>>
pub fn get_input_partner_ids(&self) -> &Option<Vec<String>>
A list of IDs for all Inputs which are partners of this one.
Sourcepub fn input_source_type(self, input: InputSourceType) -> Self
pub fn input_source_type(self, input: InputSourceType) -> Self
Certain pull input sources can be dynamic, meaning that they can have their URL’s dynamically changes during input switch actions. Presently, this functionality only works with MP4_FILE and TS_FILE inputs.
Sourcepub fn set_input_source_type(self, input: Option<InputSourceType>) -> Self
pub fn set_input_source_type(self, input: Option<InputSourceType>) -> Self
Certain pull input sources can be dynamic, meaning that they can have their URL’s dynamically changes during input switch actions. Presently, this functionality only works with MP4_FILE and TS_FILE inputs.
Sourcepub fn get_input_source_type(&self) -> &Option<InputSourceType>
pub fn get_input_source_type(&self) -> &Option<InputSourceType>
Certain pull input sources can be dynamic, meaning that they can have their URL’s dynamically changes during input switch actions. Presently, this functionality only works with MP4_FILE and TS_FILE inputs.
Sourcepub fn media_connect_flows(self, input: MediaConnectFlow) -> Self
pub fn media_connect_flows(self, input: MediaConnectFlow) -> Self
Appends an item to media_connect_flows
.
To override the contents of this collection use set_media_connect_flows
.
A list of MediaConnect Flows for this input.
Sourcepub fn set_media_connect_flows(
self,
input: Option<Vec<MediaConnectFlow>>,
) -> Self
pub fn set_media_connect_flows( self, input: Option<Vec<MediaConnectFlow>>, ) -> Self
A list of MediaConnect Flows for this input.
Sourcepub fn get_media_connect_flows(&self) -> &Option<Vec<MediaConnectFlow>>
pub fn get_media_connect_flows(&self) -> &Option<Vec<MediaConnectFlow>>
A list of MediaConnect Flows for this input.
Sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The user-assigned name (This is a mutable value).
Sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The user-assigned name (This is a mutable value).
Sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the role this input assumes during and after creation.
Sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the role this input assumes during and after creation.
Sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the role this input assumes during and after creation.
Sourcepub fn security_groups(self, input: impl Into<String>) -> Self
pub fn security_groups(self, input: impl Into<String>) -> Self
Appends an item to security_groups
.
To override the contents of this collection use set_security_groups
.
A list of IDs for all the Input Security Groups attached to the input.
Sourcepub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
pub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
A list of IDs for all the Input Security Groups attached to the input.
Sourcepub fn get_security_groups(&self) -> &Option<Vec<String>>
pub fn get_security_groups(&self) -> &Option<Vec<String>>
A list of IDs for all the Input Security Groups attached to the input.
Sourcepub fn sources(self, input: InputSource) -> Self
pub fn sources(self, input: InputSource) -> Self
Appends an item to sources
.
To override the contents of this collection use set_sources
.
A list of the sources of the input (PULL-type).
Sourcepub fn set_sources(self, input: Option<Vec<InputSource>>) -> Self
pub fn set_sources(self, input: Option<Vec<InputSource>>) -> Self
A list of the sources of the input (PULL-type).
Sourcepub fn get_sources(&self) -> &Option<Vec<InputSource>>
pub fn get_sources(&self) -> &Option<Vec<InputSource>>
A list of the sources of the input (PULL-type).
Sourcepub fn state(self, input: InputState) -> Self
pub fn state(self, input: InputState) -> Self
Placeholder documentation for InputState
Sourcepub fn set_state(self, input: Option<InputState>) -> Self
pub fn set_state(self, input: Option<InputState>) -> Self
Placeholder documentation for InputState
Sourcepub fn get_state(&self) -> &Option<InputState>
pub fn get_state(&self) -> &Option<InputState>
Placeholder documentation for InputState
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
A collection of key-value pairs.
A collection of key-value pairs.
A collection of key-value pairs.
Sourcepub fn type(self, input: InputType) -> Self
pub fn type(self, input: InputType) -> Self
The different types of inputs that AWS Elemental MediaLive supports.
Sourcepub fn set_type(self, input: Option<InputType>) -> Self
pub fn set_type(self, input: Option<InputType>) -> Self
The different types of inputs that AWS Elemental MediaLive supports.
Sourcepub fn get_type(&self) -> &Option<InputType>
pub fn get_type(&self) -> &Option<InputType>
The different types of inputs that AWS Elemental MediaLive supports.
Sourcepub fn srt_settings(self, input: SrtSettings) -> Self
pub fn srt_settings(self, input: SrtSettings) -> Self
The settings associated with an SRT input.
Sourcepub fn set_srt_settings(self, input: Option<SrtSettings>) -> Self
pub fn set_srt_settings(self, input: Option<SrtSettings>) -> Self
The settings associated with an SRT input.
Sourcepub fn get_srt_settings(&self) -> &Option<SrtSettings>
pub fn get_srt_settings(&self) -> &Option<SrtSettings>
The settings associated with an SRT input.
Sourcepub fn input_network_location(self, input: InputNetworkLocation) -> Self
pub fn input_network_location(self, input: InputNetworkLocation) -> Self
The location of this input. AWS, for an input existing in the AWS Cloud, On-Prem for an input in a customer network.
Sourcepub fn set_input_network_location(
self,
input: Option<InputNetworkLocation>,
) -> Self
pub fn set_input_network_location( self, input: Option<InputNetworkLocation>, ) -> Self
The location of this input. AWS, for an input existing in the AWS Cloud, On-Prem for an input in a customer network.
Sourcepub fn get_input_network_location(&self) -> &Option<InputNetworkLocation>
pub fn get_input_network_location(&self) -> &Option<InputNetworkLocation>
The location of this input. AWS, for an input existing in the AWS Cloud, On-Prem for an input in a customer network.
Sourcepub fn multicast_settings(self, input: MulticastSettings) -> Self
pub fn multicast_settings(self, input: MulticastSettings) -> Self
Multicast Input settings.
Sourcepub fn set_multicast_settings(self, input: Option<MulticastSettings>) -> Self
pub fn set_multicast_settings(self, input: Option<MulticastSettings>) -> Self
Multicast Input settings.
Sourcepub fn get_multicast_settings(&self) -> &Option<MulticastSettings>
pub fn get_multicast_settings(&self) -> &Option<MulticastSettings>
Multicast Input settings.
Sourcepub fn smpte2110_receiver_group_settings(
self,
input: Smpte2110ReceiverGroupSettings,
) -> Self
pub fn smpte2110_receiver_group_settings( self, input: Smpte2110ReceiverGroupSettings, ) -> Self
Include this parameter if the input is a SMPTE 2110 input, to identify the stream sources for this input.
Sourcepub fn set_smpte2110_receiver_group_settings(
self,
input: Option<Smpte2110ReceiverGroupSettings>,
) -> Self
pub fn set_smpte2110_receiver_group_settings( self, input: Option<Smpte2110ReceiverGroupSettings>, ) -> Self
Include this parameter if the input is a SMPTE 2110 input, to identify the stream sources for this input.
Sourcepub fn get_smpte2110_receiver_group_settings(
&self,
) -> &Option<Smpte2110ReceiverGroupSettings>
pub fn get_smpte2110_receiver_group_settings( &self, ) -> &Option<Smpte2110ReceiverGroupSettings>
Include this parameter if the input is a SMPTE 2110 input, to identify the stream sources for this input.
Sourcepub fn sdi_sources(self, input: impl Into<String>) -> Self
pub fn sdi_sources(self, input: impl Into<String>) -> Self
Appends an item to sdi_sources
.
To override the contents of this collection use set_sdi_sources
.
SDI Sources for this Input.
Sourcepub fn set_sdi_sources(self, input: Option<Vec<String>>) -> Self
pub fn set_sdi_sources(self, input: Option<Vec<String>>) -> Self
SDI Sources for this Input.
Sourcepub fn get_sdi_sources(&self) -> &Option<Vec<String>>
pub fn get_sdi_sources(&self) -> &Option<Vec<String>>
SDI Sources for this Input.
Trait Implementations§
Source§impl Clone for InputBuilder
impl Clone for InputBuilder
Source§fn clone(&self) -> InputBuilder
fn clone(&self) -> InputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InputBuilder
impl Debug for InputBuilder
Source§impl Default for InputBuilder
impl Default for InputBuilder
Source§fn default() -> InputBuilder
fn default() -> InputBuilder
Source§impl PartialEq for InputBuilder
impl PartialEq for InputBuilder
impl StructuralPartialEq for InputBuilder
Auto Trait Implementations§
impl Freeze for InputBuilder
impl RefUnwindSafe for InputBuilder
impl Send for InputBuilder
impl Sync for InputBuilder
impl Unpin for InputBuilder
impl UnwindSafe for InputBuilder
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);