aws-sdk-mediaconnect 1.109.0

AWS SDK for AWS MediaConnect
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateGatewayInstanceInput {
    /// <p>The state of the instance. <code>ACTIVE</code> or <code>INACTIVE</code>.</p>
    pub bridge_placement: ::std::option::Option<crate::types::BridgePlacement>,
    /// <p>The Amazon Resource Name (ARN) of the gateway instance that you want to update.</p>
    pub gateway_instance_arn: ::std::option::Option<::std::string::String>,
}
impl UpdateGatewayInstanceInput {
    /// <p>The state of the instance. <code>ACTIVE</code> or <code>INACTIVE</code>.</p>
    pub fn bridge_placement(&self) -> ::std::option::Option<&crate::types::BridgePlacement> {
        self.bridge_placement.as_ref()
    }
    /// <p>The Amazon Resource Name (ARN) of the gateway instance that you want to update.</p>
    pub fn gateway_instance_arn(&self) -> ::std::option::Option<&str> {
        self.gateway_instance_arn.as_deref()
    }
}
impl UpdateGatewayInstanceInput {
    /// Creates a new builder-style object to manufacture [`UpdateGatewayInstanceInput`](crate::operation::update_gateway_instance::UpdateGatewayInstanceInput).
    pub fn builder() -> crate::operation::update_gateway_instance::builders::UpdateGatewayInstanceInputBuilder {
        crate::operation::update_gateway_instance::builders::UpdateGatewayInstanceInputBuilder::default()
    }
}

/// A builder for [`UpdateGatewayInstanceInput`](crate::operation::update_gateway_instance::UpdateGatewayInstanceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateGatewayInstanceInputBuilder {
    pub(crate) bridge_placement: ::std::option::Option<crate::types::BridgePlacement>,
    pub(crate) gateway_instance_arn: ::std::option::Option<::std::string::String>,
}
impl UpdateGatewayInstanceInputBuilder {
    /// <p>The state of the instance. <code>ACTIVE</code> or <code>INACTIVE</code>.</p>
    pub fn bridge_placement(mut self, input: crate::types::BridgePlacement) -> Self {
        self.bridge_placement = ::std::option::Option::Some(input);
        self
    }
    /// <p>The state of the instance. <code>ACTIVE</code> or <code>INACTIVE</code>.</p>
    pub fn set_bridge_placement(mut self, input: ::std::option::Option<crate::types::BridgePlacement>) -> Self {
        self.bridge_placement = input;
        self
    }
    /// <p>The state of the instance. <code>ACTIVE</code> or <code>INACTIVE</code>.</p>
    pub fn get_bridge_placement(&self) -> &::std::option::Option<crate::types::BridgePlacement> {
        &self.bridge_placement
    }
    /// <p>The Amazon Resource Name (ARN) of the gateway instance that you want to update.</p>
    /// This field is required.
    pub fn gateway_instance_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.gateway_instance_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the gateway instance that you want to update.</p>
    pub fn set_gateway_instance_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.gateway_instance_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the gateway instance that you want to update.</p>
    pub fn get_gateway_instance_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.gateway_instance_arn
    }
    /// Consumes the builder and constructs a [`UpdateGatewayInstanceInput`](crate::operation::update_gateway_instance::UpdateGatewayInstanceInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_gateway_instance::UpdateGatewayInstanceInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::update_gateway_instance::UpdateGatewayInstanceInput {
            bridge_placement: self.bridge_placement,
            gateway_instance_arn: self.gateway_instance_arn,
        })
    }
}