#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateDeviceInstanceInput {
pub arn: ::std::option::Option<::std::string::String>,
pub profile_arn: ::std::option::Option<::std::string::String>,
pub labels: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl UpdateDeviceInstanceInput {
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
pub fn profile_arn(&self) -> ::std::option::Option<&str> {
self.profile_arn.as_deref()
}
pub fn labels(&self) -> &[::std::string::String] {
self.labels.as_deref().unwrap_or_default()
}
}
impl UpdateDeviceInstanceInput {
pub fn builder() -> crate::operation::update_device_instance::builders::UpdateDeviceInstanceInputBuilder {
crate::operation::update_device_instance::builders::UpdateDeviceInstanceInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateDeviceInstanceInputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) profile_arn: ::std::option::Option<::std::string::String>,
pub(crate) labels: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl UpdateDeviceInstanceInputBuilder {
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 profile_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.profile_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_profile_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.profile_arn = input;
self
}
pub fn get_profile_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.profile_arn
}
pub fn labels(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.labels.unwrap_or_default();
v.push(input.into());
self.labels = ::std::option::Option::Some(v);
self
}
pub fn set_labels(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.labels = input;
self
}
pub fn get_labels(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.labels
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_device_instance::UpdateDeviceInstanceInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::update_device_instance::UpdateDeviceInstanceInput {
arn: self.arn,
profile_arn: self.profile_arn,
labels: self.labels,
})
}
}