aws_sdk_robomaker/operation/delete_robot/
_delete_robot_input.rs1#[allow(missing_docs)] #[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 DeleteRobotInput {
9 pub robot: ::std::option::Option<::std::string::String>,
11}
12impl DeleteRobotInput {
13 pub fn robot(&self) -> ::std::option::Option<&str> {
15 self.robot.as_deref()
16 }
17}
18impl DeleteRobotInput {
19 pub fn builder() -> crate::operation::delete_robot::builders::DeleteRobotInputBuilder {
21 crate::operation::delete_robot::builders::DeleteRobotInputBuilder::default()
22 }
23}
24
25#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
27#[non_exhaustive]
28pub struct DeleteRobotInputBuilder {
29 pub(crate) robot: ::std::option::Option<::std::string::String>,
30}
31impl DeleteRobotInputBuilder {
32 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 pub fn set_robot(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
40 self.robot = input;
41 self
42 }
43 pub fn get_robot(&self) -> &::std::option::Option<::std::string::String> {
45 &self.robot
46 }
47 pub fn build(self) -> ::std::result::Result<crate::operation::delete_robot::DeleteRobotInput, ::aws_smithy_types::error::operation::BuildError> {
49 ::std::result::Result::Ok(crate::operation::delete_robot::DeleteRobotInput { robot: self.robot })
50 }
51}