#[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 DescribeRobotOutput {
pub arn: ::std::option::Option<::std::string::String>,
pub name: ::std::option::Option<::std::string::String>,
pub fleet_arn: ::std::option::Option<::std::string::String>,
pub status: ::std::option::Option<crate::types::RobotStatus>,
pub greengrass_group_id: ::std::option::Option<::std::string::String>,
pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub architecture: ::std::option::Option<crate::types::Architecture>,
pub last_deployment_job: ::std::option::Option<::std::string::String>,
pub last_deployment_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
_request_id: Option<String>,
}
impl DescribeRobotOutput {
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn fleet_arn(&self) -> ::std::option::Option<&str> {
self.fleet_arn.as_deref()
}
pub fn status(&self) -> ::std::option::Option<&crate::types::RobotStatus> {
self.status.as_ref()
}
pub fn greengrass_group_id(&self) -> ::std::option::Option<&str> {
self.greengrass_group_id.as_deref()
}
pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.created_at.as_ref()
}
pub fn architecture(&self) -> ::std::option::Option<&crate::types::Architecture> {
self.architecture.as_ref()
}
pub fn last_deployment_job(&self) -> ::std::option::Option<&str> {
self.last_deployment_job.as_deref()
}
pub fn last_deployment_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_deployment_time.as_ref()
}
pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DescribeRobotOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeRobotOutput {
pub fn builder() -> crate::operation::describe_robot::builders::DescribeRobotOutputBuilder {
crate::operation::describe_robot::builders::DescribeRobotOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DescribeRobotOutputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) fleet_arn: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<crate::types::RobotStatus>,
pub(crate) greengrass_group_id: ::std::option::Option<::std::string::String>,
pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) architecture: ::std::option::Option<crate::types::Architecture>,
pub(crate) last_deployment_job: ::std::option::Option<::std::string::String>,
pub(crate) last_deployment_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
_request_id: Option<String>,
}
impl DescribeRobotOutputBuilder {
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn fleet_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.fleet_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_fleet_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.fleet_arn = input;
self
}
pub fn get_fleet_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.fleet_arn
}
pub fn status(mut self, input: crate::types::RobotStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
pub fn set_status(mut self, input: ::std::option::Option<crate::types::RobotStatus>) -> Self {
self.status = input;
self
}
pub fn get_status(&self) -> &::std::option::Option<crate::types::RobotStatus> {
&self.status
}
pub fn greengrass_group_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.greengrass_group_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_greengrass_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.greengrass_group_id = input;
self
}
pub fn get_greengrass_group_id(&self) -> &::std::option::Option<::std::string::String> {
&self.greengrass_group_id
}
pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.created_at = ::std::option::Option::Some(input);
self
}
pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.created_at = input;
self
}
pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.created_at
}
pub fn architecture(mut self, input: crate::types::Architecture) -> Self {
self.architecture = ::std::option::Option::Some(input);
self
}
pub fn set_architecture(mut self, input: ::std::option::Option<crate::types::Architecture>) -> Self {
self.architecture = input;
self
}
pub fn get_architecture(&self) -> &::std::option::Option<crate::types::Architecture> {
&self.architecture
}
pub fn last_deployment_job(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.last_deployment_job = ::std::option::Option::Some(input.into());
self
}
pub fn set_last_deployment_job(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.last_deployment_job = input;
self
}
pub fn get_last_deployment_job(&self) -> &::std::option::Option<::std::string::String> {
&self.last_deployment_job
}
pub fn last_deployment_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_deployment_time = ::std::option::Option::Some(input);
self
}
pub fn set_last_deployment_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_deployment_time = input;
self
}
pub fn get_last_deployment_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_deployment_time
}
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = ::std::option::Option::Some(hash_map);
self
}
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.tags = input;
self
}
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.tags
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::describe_robot::DescribeRobotOutput {
crate::operation::describe_robot::DescribeRobotOutput {
arn: self.arn,
name: self.name,
fleet_arn: self.fleet_arn,
status: self.status,
greengrass_group_id: self.greengrass_group_id,
created_at: self.created_at,
architecture: self.architecture,
last_deployment_job: self.last_deployment_job,
last_deployment_time: self.last_deployment_time,
tags: self.tags,
_request_id: self._request_id,
}
}
}