aws-sdk-medialive 1.78.0

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

/// Placeholder documentation for DeleteNetworkRequest
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteNetworkInput {
    /// The ID of the network.
    pub network_id: ::std::option::Option<::std::string::String>,
}
impl DeleteNetworkInput {
    /// The ID of the network.
    pub fn network_id(&self) -> ::std::option::Option<&str> {
        self.network_id.as_deref()
    }
}
impl DeleteNetworkInput {
    /// Creates a new builder-style object to manufacture [`DeleteNetworkInput`](crate::operation::delete_network::DeleteNetworkInput).
    pub fn builder() -> crate::operation::delete_network::builders::DeleteNetworkInputBuilder {
        crate::operation::delete_network::builders::DeleteNetworkInputBuilder::default()
    }
}

/// A builder for [`DeleteNetworkInput`](crate::operation::delete_network::DeleteNetworkInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteNetworkInputBuilder {
    pub(crate) network_id: ::std::option::Option<::std::string::String>,
}
impl DeleteNetworkInputBuilder {
    /// The ID of the network.
    /// This field is required.
    pub fn network_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.network_id = ::std::option::Option::Some(input.into());
        self
    }
    /// The ID of the network.
    pub fn set_network_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.network_id = input;
        self
    }
    /// The ID of the network.
    pub fn get_network_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.network_id
    }
    /// Consumes the builder and constructs a [`DeleteNetworkInput`](crate::operation::delete_network::DeleteNetworkInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_network::DeleteNetworkInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_network::DeleteNetworkInput { network_id: self.network_id })
    }
}