aws_sdk_evidently/operation/get_segment/
_get_segment_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetSegmentInput {
    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()
    }
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetSegmentInputBuilder {
    pub(crate) segment: ::std::option::Option<::std::string::String>,
}
impl GetSegmentInputBuilder {
    pub fn segment(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.segment = ::std::option::Option::Some(input.into());
        self
    }
    pub fn set_segment(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.segment = input;
        self
    }
    pub fn get_segment(&self) -> &::std::option::Option<::std::string::String> {
        &self.segment
    }
    pub fn build(self) -> ::std::result::Result<crate::operation::get_segment::GetSegmentInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_segment::GetSegmentInput { segment: self.segment })
    }
}