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