aws-sdk-iotthingsgraph 1.97.0

AWS SDK for AWS IoT Things Graph
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 UndeploySystemInstanceInput {
    /// <p>The ID of the system instance to remove from its target.</p>
    pub id: ::std::option::Option<::std::string::String>,
}
impl UndeploySystemInstanceInput {
    /// <p>The ID of the system instance to remove from its target.</p>
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
}
impl UndeploySystemInstanceInput {
    /// Creates a new builder-style object to manufacture [`UndeploySystemInstanceInput`](crate::operation::undeploy_system_instance::UndeploySystemInstanceInput).
    pub fn builder() -> crate::operation::undeploy_system_instance::builders::UndeploySystemInstanceInputBuilder {
        crate::operation::undeploy_system_instance::builders::UndeploySystemInstanceInputBuilder::default()
    }
}

/// A builder for [`UndeploySystemInstanceInput`](crate::operation::undeploy_system_instance::UndeploySystemInstanceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UndeploySystemInstanceInputBuilder {
    pub(crate) id: ::std::option::Option<::std::string::String>,
}
impl UndeploySystemInstanceInputBuilder {
    /// <p>The ID of the system instance to remove from its target.</p>
    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the system instance to remove from its target.</p>
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// <p>The ID of the system instance to remove from its target.</p>
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// Consumes the builder and constructs a [`UndeploySystemInstanceInput`](crate::operation::undeploy_system_instance::UndeploySystemInstanceInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::undeploy_system_instance::UndeploySystemInstanceInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::undeploy_system_instance::UndeploySystemInstanceInput { id: self.id })
    }
}