aws-sdk-robomaker 1.81.0

AWS SDK for AWS RoboMaker
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[deprecated(
    note = "Support for the AWS RoboMaker application deployment feature has ended. For additional information, see https://docs.aws.amazon.com/robomaker/latest/dg/fleets.html."
)]
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeregisterRobotInput {
    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
    pub fleet: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the robot.</p>
    pub robot: ::std::option::Option<::std::string::String>,
}
impl DeregisterRobotInput {
    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
    pub fn fleet(&self) -> ::std::option::Option<&str> {
        self.fleet.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the robot.</p>
    pub fn robot(&self) -> ::std::option::Option<&str> {
        self.robot.as_deref()
    }
}
impl DeregisterRobotInput {
    /// Creates a new builder-style object to manufacture [`DeregisterRobotInput`](crate::operation::deregister_robot::DeregisterRobotInput).
    pub fn builder() -> crate::operation::deregister_robot::builders::DeregisterRobotInputBuilder {
        crate::operation::deregister_robot::builders::DeregisterRobotInputBuilder::default()
    }
}

/// A builder for [`DeregisterRobotInput`](crate::operation::deregister_robot::DeregisterRobotInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeregisterRobotInputBuilder {
    pub(crate) fleet: ::std::option::Option<::std::string::String>,
    pub(crate) robot: ::std::option::Option<::std::string::String>,
}
impl DeregisterRobotInputBuilder {
    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
    /// This field is required.
    pub fn fleet(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.fleet = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
    pub fn set_fleet(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.fleet = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
    pub fn get_fleet(&self) -> &::std::option::Option<::std::string::String> {
        &self.fleet
    }
    /// <p>The Amazon Resource Name (ARN) of the robot.</p>
    /// This field is required.
    pub fn robot(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.robot = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the robot.</p>
    pub fn set_robot(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.robot = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the robot.</p>
    pub fn get_robot(&self) -> &::std::option::Option<::std::string::String> {
        &self.robot
    }
    /// Consumes the builder and constructs a [`DeregisterRobotInput`](crate::operation::deregister_robot::DeregisterRobotInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::deregister_robot::DeregisterRobotInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::deregister_robot::DeregisterRobotInput {
            fleet: self.fleet,
            robot: self.robot,
        })
    }
}