#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetSegmentInput {
#[doc(hidden)]
pub segment: std::option::Option<std::string::String>,
}
impl GetSegmentInput {
pub fn segment(&self) -> std::option::Option<&str> {
self.segment.as_deref()
}
}
impl GetSegmentInput {
pub fn builder() -> crate::operation::get_segment::builders::GetSegmentInputBuilder {
crate::operation::get_segment::builders::GetSegmentInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetSegmentInputBuilder {
pub(crate) segment: std::option::Option<std::string::String>,
}
impl GetSegmentInputBuilder {
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::get_segment::GetSegmentInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::get_segment::GetSegmentInput {
segment: self.segment,
})
}
}