aws_sdk_vpclattice/operation/delete_service/
_delete_service_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteServiceInput {
pub service_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteServiceInput {
pub fn service_identifier(&self) -> ::std::option::Option<&str> {
self.service_identifier.as_deref()
}
}
impl DeleteServiceInput {
pub fn builder() -> crate::operation::delete_service::builders::DeleteServiceInputBuilder {
crate::operation::delete_service::builders::DeleteServiceInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteServiceInputBuilder {
pub(crate) service_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteServiceInputBuilder {
pub fn service_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.service_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_service_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.service_identifier = input;
self
}
pub fn get_service_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.service_identifier
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_service::DeleteServiceInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_service::DeleteServiceInput {
service_identifier: self.service_identifier,
})
}
}