#[allow(missing_docs)] #[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 {
pub fleet: ::std::option::Option<::std::string::String>,
pub robot: ::std::option::Option<::std::string::String>,
}
impl DeregisterRobotInput {
pub fn fleet(&self) -> ::std::option::Option<&str> {
self.fleet.as_deref()
}
pub fn robot(&self) -> ::std::option::Option<&str> {
self.robot.as_deref()
}
}
impl DeregisterRobotInput {
pub fn builder() -> crate::operation::deregister_robot::builders::DeregisterRobotInputBuilder {
crate::operation::deregister_robot::builders::DeregisterRobotInputBuilder::default()
}
}
#[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 {
pub fn fleet(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.fleet = ::std::option::Option::Some(input.into());
self
}
pub fn set_fleet(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.fleet = input;
self
}
pub fn get_fleet(&self) -> &::std::option::Option<::std::string::String> {
&self.fleet
}
pub fn robot(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.robot = ::std::option::Option::Some(input.into());
self
}
pub fn set_robot(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.robot = input;
self
}
pub fn get_robot(&self) -> &::std::option::Option<::std::string::String> {
&self.robot
}
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,
})
}
}