aws_sdk_robomaker/operation/describe_robot_application/
_describe_robot_application_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#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DescribeRobotApplicationInput {
6    /// <p>The Amazon Resource Name (ARN) of the robot application.</p>
7    pub application: ::std::option::Option<::std::string::String>,
8    /// <p>The version of the robot application to describe.</p>
9    pub application_version: ::std::option::Option<::std::string::String>,
10}
11impl DescribeRobotApplicationInput {
12    /// <p>The Amazon Resource Name (ARN) of the robot application.</p>
13    pub fn application(&self) -> ::std::option::Option<&str> {
14        self.application.as_deref()
15    }
16    /// <p>The version of the robot application to describe.</p>
17    pub fn application_version(&self) -> ::std::option::Option<&str> {
18        self.application_version.as_deref()
19    }
20}
21impl DescribeRobotApplicationInput {
22    /// Creates a new builder-style object to manufacture [`DescribeRobotApplicationInput`](crate::operation::describe_robot_application::DescribeRobotApplicationInput).
23    pub fn builder() -> crate::operation::describe_robot_application::builders::DescribeRobotApplicationInputBuilder {
24        crate::operation::describe_robot_application::builders::DescribeRobotApplicationInputBuilder::default()
25    }
26}
27
28/// A builder for [`DescribeRobotApplicationInput`](crate::operation::describe_robot_application::DescribeRobotApplicationInput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct DescribeRobotApplicationInputBuilder {
32    pub(crate) application: ::std::option::Option<::std::string::String>,
33    pub(crate) application_version: ::std::option::Option<::std::string::String>,
34}
35impl DescribeRobotApplicationInputBuilder {
36    /// <p>The Amazon Resource Name (ARN) of the robot application.</p>
37    /// This field is required.
38    pub fn application(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39        self.application = ::std::option::Option::Some(input.into());
40        self
41    }
42    /// <p>The Amazon Resource Name (ARN) of the robot application.</p>
43    pub fn set_application(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44        self.application = input;
45        self
46    }
47    /// <p>The Amazon Resource Name (ARN) of the robot application.</p>
48    pub fn get_application(&self) -> &::std::option::Option<::std::string::String> {
49        &self.application
50    }
51    /// <p>The version of the robot application to describe.</p>
52    pub fn application_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53        self.application_version = ::std::option::Option::Some(input.into());
54        self
55    }
56    /// <p>The version of the robot application to describe.</p>
57    pub fn set_application_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58        self.application_version = input;
59        self
60    }
61    /// <p>The version of the robot application to describe.</p>
62    pub fn get_application_version(&self) -> &::std::option::Option<::std::string::String> {
63        &self.application_version
64    }
65    /// Consumes the builder and constructs a [`DescribeRobotApplicationInput`](crate::operation::describe_robot_application::DescribeRobotApplicationInput).
66    pub fn build(
67        self,
68    ) -> ::std::result::Result<
69        crate::operation::describe_robot_application::DescribeRobotApplicationInput,
70        ::aws_smithy_types::error::operation::BuildError,
71    > {
72        ::std::result::Result::Ok(crate::operation::describe_robot_application::DescribeRobotApplicationInput {
73            application: self.application,
74            application_version: self.application_version,
75        })
76    }
77}