#[allow(missing_docs)] #[deprecated(
note = "AWS RoboMaker is unable to process this request as the 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 CreateRobotInput {
pub name: ::std::option::Option<::std::string::String>,
pub architecture: ::std::option::Option<crate::types::Architecture>,
pub greengrass_group_id: ::std::option::Option<::std::string::String>,
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
}
impl CreateRobotInput {
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn architecture(&self) -> ::std::option::Option<&crate::types::Architecture> {
self.architecture.as_ref()
}
pub fn greengrass_group_id(&self) -> ::std::option::Option<&str> {
self.greengrass_group_id.as_deref()
}
pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
}
impl CreateRobotInput {
pub fn builder() -> crate::operation::create_robot::builders::CreateRobotInputBuilder {
crate::operation::create_robot::builders::CreateRobotInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct CreateRobotInputBuilder {
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) architecture: ::std::option::Option<crate::types::Architecture>,
pub(crate) greengrass_group_id: ::std::option::Option<::std::string::String>,
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
}
impl CreateRobotInputBuilder {
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 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 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 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 fn build(self) -> ::std::result::Result<crate::operation::create_robot::CreateRobotInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::create_robot::CreateRobotInput {
name: self.name,
architecture: self.architecture,
greengrass_group_id: self.greengrass_group_id,
tags: self.tags,
})
}
}