#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateSegmentOutput {
    #[doc(hidden)]
    pub segment_response: std::option::Option<crate::types::SegmentResponse>,
    _request_id: Option<String>,
}
impl CreateSegmentOutput {
    pub fn segment_response(&self) -> std::option::Option<&crate::types::SegmentResponse> {
        self.segment_response.as_ref()
    }
}
impl aws_http::request_id::RequestId for CreateSegmentOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreateSegmentOutput {
    pub fn builder() -> crate::operation::create_segment::builders::CreateSegmentOutputBuilder {
        crate::operation::create_segment::builders::CreateSegmentOutputBuilder::default()
    }
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct CreateSegmentOutputBuilder {
    pub(crate) segment_response: std::option::Option<crate::types::SegmentResponse>,
    _request_id: Option<String>,
}
impl CreateSegmentOutputBuilder {
    pub fn segment_response(mut self, input: crate::types::SegmentResponse) -> Self {
        self.segment_response = Some(input);
        self
    }
    pub fn set_segment_response(
        mut self,
        input: std::option::Option<crate::types::SegmentResponse>,
    ) -> Self {
        self.segment_response = input;
        self
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    pub fn build(self) -> crate::operation::create_segment::CreateSegmentOutput {
        crate::operation::create_segment::CreateSegmentOutput {
            segment_response: self.segment_response,
            _request_id: self._request_id,
        }
    }
}