#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteServiceAttributesInput {
pub service_id: ::std::option::Option<::std::string::String>,
pub attributes: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DeleteServiceAttributesInput {
pub fn service_id(&self) -> ::std::option::Option<&str> {
self.service_id.as_deref()
}
pub fn attributes(&self) -> &[::std::string::String] {
self.attributes.as_deref().unwrap_or_default()
}
}
impl DeleteServiceAttributesInput {
pub fn builder() -> crate::operation::delete_service_attributes::builders::DeleteServiceAttributesInputBuilder {
crate::operation::delete_service_attributes::builders::DeleteServiceAttributesInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteServiceAttributesInputBuilder {
pub(crate) service_id: ::std::option::Option<::std::string::String>,
pub(crate) attributes: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DeleteServiceAttributesInputBuilder {
pub fn service_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.service_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_service_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.service_id = input;
self
}
pub fn get_service_id(&self) -> &::std::option::Option<::std::string::String> {
&self.service_id
}
pub fn attributes(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.attributes.unwrap_or_default();
v.push(input.into());
self.attributes = ::std::option::Option::Some(v);
self
}
pub fn set_attributes(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.attributes = input;
self
}
pub fn get_attributes(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.attributes
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::delete_service_attributes::DeleteServiceAttributesInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::delete_service_attributes::DeleteServiceAttributesInput {
service_id: self.service_id,
attributes: self.attributes,
})
}
}