aws-sdk-mediaconnect 0.27.0

AWS SDK for AWS MediaConnect
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// The fields that you want to update in the output.
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateFlowOutputInput {
    /// The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
    #[doc(hidden)]
    pub cidr_allow_list: std::option::Option<std::vec::Vec<std::string::String>>,
    /// A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.
    #[doc(hidden)]
    pub description: std::option::Option<std::string::String>,
    /// The IP address where you want to send the output.
    #[doc(hidden)]
    pub destination: std::option::Option<std::string::String>,
    /// The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Allowable encryption types: static-key.
    #[doc(hidden)]
    pub encryption: std::option::Option<crate::types::UpdateEncryption>,
    /// The flow that is associated with the output that you want to update.
    #[doc(hidden)]
    pub flow_arn: std::option::Option<std::string::String>,
    /// The maximum latency in milliseconds. This parameter applies only to RIST-based, Zixi-based, and Fujitsu-based streams.
    #[doc(hidden)]
    pub max_latency: std::option::Option<i32>,
    /// The media streams that are associated with the output, and the parameters for those associations.
    #[doc(hidden)]
    pub media_stream_output_configurations:
        std::option::Option<std::vec::Vec<crate::types::MediaStreamOutputConfigurationRequest>>,
    /// The minimum latency in milliseconds for SRT-based streams. In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.
    #[doc(hidden)]
    pub min_latency: std::option::Option<i32>,
    /// The ARN of the output that you want to update.
    #[doc(hidden)]
    pub output_arn: std::option::Option<std::string::String>,
    /// The port to use when content is distributed to this output.
    #[doc(hidden)]
    pub port: std::option::Option<i32>,
    /// The protocol to use for the output.
    #[doc(hidden)]
    pub protocol: std::option::Option<crate::types::Protocol>,
    /// The remote ID for the Zixi-pull stream.
    #[doc(hidden)]
    pub remote_id: std::option::Option<std::string::String>,
    /// The port that the flow uses to send outbound requests to initiate connection with the sender.
    #[doc(hidden)]
    pub sender_control_port: std::option::Option<i32>,
    /// The IP address that the flow communicates with to initiate connection with the sender.
    #[doc(hidden)]
    pub sender_ip_address: std::option::Option<std::string::String>,
    /// The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.
    #[doc(hidden)]
    pub smoothing_latency: std::option::Option<i32>,
    /// The stream ID that you want to use for this transport. This parameter applies only to Zixi and SRT caller-based streams.
    #[doc(hidden)]
    pub stream_id: std::option::Option<std::string::String>,
    /// The name of the VPC interface attachment to use for this output.
    #[doc(hidden)]
    pub vpc_interface_attachment: std::option::Option<crate::types::VpcInterfaceAttachment>,
}
impl UpdateFlowOutputInput {
    /// The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
    pub fn cidr_allow_list(&self) -> std::option::Option<&[std::string::String]> {
        self.cidr_allow_list.as_deref()
    }
    /// A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.
    pub fn description(&self) -> std::option::Option<&str> {
        self.description.as_deref()
    }
    /// The IP address where you want to send the output.
    pub fn destination(&self) -> std::option::Option<&str> {
        self.destination.as_deref()
    }
    /// The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Allowable encryption types: static-key.
    pub fn encryption(&self) -> std::option::Option<&crate::types::UpdateEncryption> {
        self.encryption.as_ref()
    }
    /// The flow that is associated with the output that you want to update.
    pub fn flow_arn(&self) -> std::option::Option<&str> {
        self.flow_arn.as_deref()
    }
    /// The maximum latency in milliseconds. This parameter applies only to RIST-based, Zixi-based, and Fujitsu-based streams.
    pub fn max_latency(&self) -> std::option::Option<i32> {
        self.max_latency
    }
    /// The media streams that are associated with the output, and the parameters for those associations.
    pub fn media_stream_output_configurations(
        &self,
    ) -> std::option::Option<&[crate::types::MediaStreamOutputConfigurationRequest]> {
        self.media_stream_output_configurations.as_deref()
    }
    /// The minimum latency in milliseconds for SRT-based streams. In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.
    pub fn min_latency(&self) -> std::option::Option<i32> {
        self.min_latency
    }
    /// The ARN of the output that you want to update.
    pub fn output_arn(&self) -> std::option::Option<&str> {
        self.output_arn.as_deref()
    }
    /// The port to use when content is distributed to this output.
    pub fn port(&self) -> std::option::Option<i32> {
        self.port
    }
    /// The protocol to use for the output.
    pub fn protocol(&self) -> std::option::Option<&crate::types::Protocol> {
        self.protocol.as_ref()
    }
    /// The remote ID for the Zixi-pull stream.
    pub fn remote_id(&self) -> std::option::Option<&str> {
        self.remote_id.as_deref()
    }
    /// The port that the flow uses to send outbound requests to initiate connection with the sender.
    pub fn sender_control_port(&self) -> std::option::Option<i32> {
        self.sender_control_port
    }
    /// The IP address that the flow communicates with to initiate connection with the sender.
    pub fn sender_ip_address(&self) -> std::option::Option<&str> {
        self.sender_ip_address.as_deref()
    }
    /// The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.
    pub fn smoothing_latency(&self) -> std::option::Option<i32> {
        self.smoothing_latency
    }
    /// The stream ID that you want to use for this transport. This parameter applies only to Zixi and SRT caller-based streams.
    pub fn stream_id(&self) -> std::option::Option<&str> {
        self.stream_id.as_deref()
    }
    /// The name of the VPC interface attachment to use for this output.
    pub fn vpc_interface_attachment(
        &self,
    ) -> std::option::Option<&crate::types::VpcInterfaceAttachment> {
        self.vpc_interface_attachment.as_ref()
    }
}
impl UpdateFlowOutputInput {
    /// Creates a new builder-style object to manufacture [`UpdateFlowOutputInput`](crate::operation::update_flow_output::UpdateFlowOutputInput).
    pub fn builder() -> crate::operation::update_flow_output::builders::UpdateFlowOutputInputBuilder
    {
        crate::operation::update_flow_output::builders::UpdateFlowOutputInputBuilder::default()
    }
}

/// A builder for [`UpdateFlowOutputInput`](crate::operation::update_flow_output::UpdateFlowOutputInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct UpdateFlowOutputInputBuilder {
    pub(crate) cidr_allow_list: std::option::Option<std::vec::Vec<std::string::String>>,
    pub(crate) description: std::option::Option<std::string::String>,
    pub(crate) destination: std::option::Option<std::string::String>,
    pub(crate) encryption: std::option::Option<crate::types::UpdateEncryption>,
    pub(crate) flow_arn: std::option::Option<std::string::String>,
    pub(crate) max_latency: std::option::Option<i32>,
    pub(crate) media_stream_output_configurations:
        std::option::Option<std::vec::Vec<crate::types::MediaStreamOutputConfigurationRequest>>,
    pub(crate) min_latency: std::option::Option<i32>,
    pub(crate) output_arn: std::option::Option<std::string::String>,
    pub(crate) port: std::option::Option<i32>,
    pub(crate) protocol: std::option::Option<crate::types::Protocol>,
    pub(crate) remote_id: std::option::Option<std::string::String>,
    pub(crate) sender_control_port: std::option::Option<i32>,
    pub(crate) sender_ip_address: std::option::Option<std::string::String>,
    pub(crate) smoothing_latency: std::option::Option<i32>,
    pub(crate) stream_id: std::option::Option<std::string::String>,
    pub(crate) vpc_interface_attachment: std::option::Option<crate::types::VpcInterfaceAttachment>,
}
impl UpdateFlowOutputInputBuilder {
    /// Appends an item to `cidr_allow_list`.
    ///
    /// To override the contents of this collection use [`set_cidr_allow_list`](Self::set_cidr_allow_list).
    ///
    /// The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
    pub fn cidr_allow_list(mut self, input: impl Into<std::string::String>) -> Self {
        let mut v = self.cidr_allow_list.unwrap_or_default();
        v.push(input.into());
        self.cidr_allow_list = Some(v);
        self
    }
    /// The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
    pub fn set_cidr_allow_list(
        mut self,
        input: std::option::Option<std::vec::Vec<std::string::String>>,
    ) -> Self {
        self.cidr_allow_list = input;
        self
    }
    /// A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.
    pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
        self.description = Some(input.into());
        self
    }
    /// A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.
    pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// The IP address where you want to send the output.
    pub fn destination(mut self, input: impl Into<std::string::String>) -> Self {
        self.destination = Some(input.into());
        self
    }
    /// The IP address where you want to send the output.
    pub fn set_destination(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.destination = input;
        self
    }
    /// The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Allowable encryption types: static-key.
    pub fn encryption(mut self, input: crate::types::UpdateEncryption) -> Self {
        self.encryption = Some(input);
        self
    }
    /// The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Allowable encryption types: static-key.
    pub fn set_encryption(
        mut self,
        input: std::option::Option<crate::types::UpdateEncryption>,
    ) -> Self {
        self.encryption = input;
        self
    }
    /// The flow that is associated with the output that you want to update.
    pub fn flow_arn(mut self, input: impl Into<std::string::String>) -> Self {
        self.flow_arn = Some(input.into());
        self
    }
    /// The flow that is associated with the output that you want to update.
    pub fn set_flow_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.flow_arn = input;
        self
    }
    /// The maximum latency in milliseconds. This parameter applies only to RIST-based, Zixi-based, and Fujitsu-based streams.
    pub fn max_latency(mut self, input: i32) -> Self {
        self.max_latency = Some(input);
        self
    }
    /// The maximum latency in milliseconds. This parameter applies only to RIST-based, Zixi-based, and Fujitsu-based streams.
    pub fn set_max_latency(mut self, input: std::option::Option<i32>) -> Self {
        self.max_latency = input;
        self
    }
    /// Appends an item to `media_stream_output_configurations`.
    ///
    /// To override the contents of this collection use [`set_media_stream_output_configurations`](Self::set_media_stream_output_configurations).
    ///
    /// The media streams that are associated with the output, and the parameters for those associations.
    pub fn media_stream_output_configurations(
        mut self,
        input: crate::types::MediaStreamOutputConfigurationRequest,
    ) -> Self {
        let mut v = self.media_stream_output_configurations.unwrap_or_default();
        v.push(input);
        self.media_stream_output_configurations = Some(v);
        self
    }
    /// The media streams that are associated with the output, and the parameters for those associations.
    pub fn set_media_stream_output_configurations(
        mut self,
        input: std::option::Option<
            std::vec::Vec<crate::types::MediaStreamOutputConfigurationRequest>,
        >,
    ) -> Self {
        self.media_stream_output_configurations = input;
        self
    }
    /// The minimum latency in milliseconds for SRT-based streams. In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.
    pub fn min_latency(mut self, input: i32) -> Self {
        self.min_latency = Some(input);
        self
    }
    /// The minimum latency in milliseconds for SRT-based streams. In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.
    pub fn set_min_latency(mut self, input: std::option::Option<i32>) -> Self {
        self.min_latency = input;
        self
    }
    /// The ARN of the output that you want to update.
    pub fn output_arn(mut self, input: impl Into<std::string::String>) -> Self {
        self.output_arn = Some(input.into());
        self
    }
    /// The ARN of the output that you want to update.
    pub fn set_output_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.output_arn = input;
        self
    }
    /// The port to use when content is distributed to this output.
    pub fn port(mut self, input: i32) -> Self {
        self.port = Some(input);
        self
    }
    /// The port to use when content is distributed to this output.
    pub fn set_port(mut self, input: std::option::Option<i32>) -> Self {
        self.port = input;
        self
    }
    /// The protocol to use for the output.
    pub fn protocol(mut self, input: crate::types::Protocol) -> Self {
        self.protocol = Some(input);
        self
    }
    /// The protocol to use for the output.
    pub fn set_protocol(mut self, input: std::option::Option<crate::types::Protocol>) -> Self {
        self.protocol = input;
        self
    }
    /// The remote ID for the Zixi-pull stream.
    pub fn remote_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.remote_id = Some(input.into());
        self
    }
    /// The remote ID for the Zixi-pull stream.
    pub fn set_remote_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.remote_id = input;
        self
    }
    /// The port that the flow uses to send outbound requests to initiate connection with the sender.
    pub fn sender_control_port(mut self, input: i32) -> Self {
        self.sender_control_port = Some(input);
        self
    }
    /// The port that the flow uses to send outbound requests to initiate connection with the sender.
    pub fn set_sender_control_port(mut self, input: std::option::Option<i32>) -> Self {
        self.sender_control_port = input;
        self
    }
    /// The IP address that the flow communicates with to initiate connection with the sender.
    pub fn sender_ip_address(mut self, input: impl Into<std::string::String>) -> Self {
        self.sender_ip_address = Some(input.into());
        self
    }
    /// The IP address that the flow communicates with to initiate connection with the sender.
    pub fn set_sender_ip_address(
        mut self,
        input: std::option::Option<std::string::String>,
    ) -> Self {
        self.sender_ip_address = input;
        self
    }
    /// The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.
    pub fn smoothing_latency(mut self, input: i32) -> Self {
        self.smoothing_latency = Some(input);
        self
    }
    /// The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.
    pub fn set_smoothing_latency(mut self, input: std::option::Option<i32>) -> Self {
        self.smoothing_latency = input;
        self
    }
    /// The stream ID that you want to use for this transport. This parameter applies only to Zixi and SRT caller-based streams.
    pub fn stream_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.stream_id = Some(input.into());
        self
    }
    /// The stream ID that you want to use for this transport. This parameter applies only to Zixi and SRT caller-based streams.
    pub fn set_stream_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.stream_id = input;
        self
    }
    /// The name of the VPC interface attachment to use for this output.
    pub fn vpc_interface_attachment(mut self, input: crate::types::VpcInterfaceAttachment) -> Self {
        self.vpc_interface_attachment = Some(input);
        self
    }
    /// The name of the VPC interface attachment to use for this output.
    pub fn set_vpc_interface_attachment(
        mut self,
        input: std::option::Option<crate::types::VpcInterfaceAttachment>,
    ) -> Self {
        self.vpc_interface_attachment = input;
        self
    }
    /// Consumes the builder and constructs a [`UpdateFlowOutputInput`](crate::operation::update_flow_output::UpdateFlowOutputInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::update_flow_output::UpdateFlowOutputInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(
            crate::operation::update_flow_output::UpdateFlowOutputInput {
                cidr_allow_list: self.cidr_allow_list,
                description: self.description,
                destination: self.destination,
                encryption: self.encryption,
                flow_arn: self.flow_arn,
                max_latency: self.max_latency,
                media_stream_output_configurations: self.media_stream_output_configurations,
                min_latency: self.min_latency,
                output_arn: self.output_arn,
                port: self.port,
                protocol: self.protocol,
                remote_id: self.remote_id,
                sender_control_port: self.sender_control_port,
                sender_ip_address: self.sender_ip_address,
                smoothing_latency: self.smoothing_latency,
                stream_id: self.stream_id,
                vpc_interface_attachment: self.vpc_interface_attachment,
            },
        )
    }
}