#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteServiceInput {
#[doc(hidden)]
pub service_arn: std::option::Option<std::string::String>,
}
impl DeleteServiceInput {
pub fn service_arn(&self) -> std::option::Option<&str> {
self.service_arn.as_deref()
}
}
impl DeleteServiceInput {
pub fn builder() -> crate::operation::delete_service::builders::DeleteServiceInputBuilder {
crate::operation::delete_service::builders::DeleteServiceInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteServiceInputBuilder {
pub(crate) service_arn: std::option::Option<std::string::String>,
}
impl DeleteServiceInputBuilder {
pub fn service_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.service_arn = Some(input.into());
self
}
pub fn set_service_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.service_arn = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::delete_service::DeleteServiceInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::delete_service::DeleteServiceInput {
service_arn: self.service_arn,
})
}
}