aws_sdk_robomaker/operation/describe_robot/
_describe_robot_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[deprecated(
4    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."
5)]
6#[non_exhaustive]
7#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
8pub struct DescribeRobotInput {
9    /// <p>The Amazon Resource Name (ARN) of the robot to be described.</p>
10    pub robot: ::std::option::Option<::std::string::String>,
11}
12impl DescribeRobotInput {
13    /// <p>The Amazon Resource Name (ARN) of the robot to be described.</p>
14    pub fn robot(&self) -> ::std::option::Option<&str> {
15        self.robot.as_deref()
16    }
17}
18impl DescribeRobotInput {
19    /// Creates a new builder-style object to manufacture [`DescribeRobotInput`](crate::operation::describe_robot::DescribeRobotInput).
20    pub fn builder() -> crate::operation::describe_robot::builders::DescribeRobotInputBuilder {
21        crate::operation::describe_robot::builders::DescribeRobotInputBuilder::default()
22    }
23}
24
25/// A builder for [`DescribeRobotInput`](crate::operation::describe_robot::DescribeRobotInput).
26#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
27#[non_exhaustive]
28pub struct DescribeRobotInputBuilder {
29    pub(crate) robot: ::std::option::Option<::std::string::String>,
30}
31impl DescribeRobotInputBuilder {
32    /// <p>The Amazon Resource Name (ARN) of the robot to be described.</p>
33    /// This field is required.
34    pub fn robot(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
35        self.robot = ::std::option::Option::Some(input.into());
36        self
37    }
38    /// <p>The Amazon Resource Name (ARN) of the robot to be described.</p>
39    pub fn set_robot(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
40        self.robot = input;
41        self
42    }
43    /// <p>The Amazon Resource Name (ARN) of the robot to be described.</p>
44    pub fn get_robot(&self) -> &::std::option::Option<::std::string::String> {
45        &self.robot
46    }
47    /// Consumes the builder and constructs a [`DescribeRobotInput`](crate::operation::describe_robot::DescribeRobotInput).
48    pub fn build(
49        self,
50    ) -> ::std::result::Result<crate::operation::describe_robot::DescribeRobotInput, ::aws_smithy_types::error::operation::BuildError> {
51        ::std::result::Result::Ok(crate::operation::describe_robot::DescribeRobotInput { robot: self.robot })
52    }
53}