#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteClientBrandingInput {
pub resource_id: ::std::option::Option<::std::string::String>,
pub platforms: ::std::option::Option<::std::vec::Vec<crate::types::ClientDeviceType>>,
}
impl DeleteClientBrandingInput {
pub fn resource_id(&self) -> ::std::option::Option<&str> {
self.resource_id.as_deref()
}
pub fn platforms(&self) -> &[crate::types::ClientDeviceType] {
self.platforms.as_deref().unwrap_or_default()
}
}
impl DeleteClientBrandingInput {
pub fn builder() -> crate::operation::delete_client_branding::builders::DeleteClientBrandingInputBuilder {
crate::operation::delete_client_branding::builders::DeleteClientBrandingInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteClientBrandingInputBuilder {
pub(crate) resource_id: ::std::option::Option<::std::string::String>,
pub(crate) platforms: ::std::option::Option<::std::vec::Vec<crate::types::ClientDeviceType>>,
}
impl DeleteClientBrandingInputBuilder {
pub fn resource_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.resource_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_resource_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.resource_id = input;
self
}
pub fn get_resource_id(&self) -> &::std::option::Option<::std::string::String> {
&self.resource_id
}
pub fn platforms(mut self, input: crate::types::ClientDeviceType) -> Self {
let mut v = self.platforms.unwrap_or_default();
v.push(input);
self.platforms = ::std::option::Option::Some(v);
self
}
pub fn set_platforms(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ClientDeviceType>>) -> Self {
self.platforms = input;
self
}
pub fn get_platforms(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ClientDeviceType>> {
&self.platforms
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_client_branding::DeleteClientBrandingInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::delete_client_branding::DeleteClientBrandingInput {
resource_id: self.resource_id,
platforms: self.platforms,
})
}
}