aws-sdk-osis 1.97.0

AWS SDK for Amazon OpenSearch Ingestion
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreatePipelineEndpointOutput {
    /// <p>The Amazon Resource Name (ARN) of the pipeline associated with the endpoint.</p>
    pub pipeline_arn: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the pipeline endpoint.</p>
    pub endpoint_id: ::std::option::Option<::std::string::String>,
    /// <p>The current status of the pipeline endpoint.</p>
    pub status: ::std::option::Option<crate::types::PipelineEndpointStatus>,
    /// <p>The ID of the VPC where the pipeline endpoint was created.</p>
    pub vpc_id: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl CreatePipelineEndpointOutput {
    /// <p>The Amazon Resource Name (ARN) of the pipeline associated with the endpoint.</p>
    pub fn pipeline_arn(&self) -> ::std::option::Option<&str> {
        self.pipeline_arn.as_deref()
    }
    /// <p>The unique identifier of the pipeline endpoint.</p>
    pub fn endpoint_id(&self) -> ::std::option::Option<&str> {
        self.endpoint_id.as_deref()
    }
    /// <p>The current status of the pipeline endpoint.</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::PipelineEndpointStatus> {
        self.status.as_ref()
    }
    /// <p>The ID of the VPC where the pipeline endpoint was created.</p>
    pub fn vpc_id(&self) -> ::std::option::Option<&str> {
        self.vpc_id.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for CreatePipelineEndpointOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreatePipelineEndpointOutput {
    /// Creates a new builder-style object to manufacture [`CreatePipelineEndpointOutput`](crate::operation::create_pipeline_endpoint::CreatePipelineEndpointOutput).
    pub fn builder() -> crate::operation::create_pipeline_endpoint::builders::CreatePipelineEndpointOutputBuilder {
        crate::operation::create_pipeline_endpoint::builders::CreatePipelineEndpointOutputBuilder::default()
    }
}

/// A builder for [`CreatePipelineEndpointOutput`](crate::operation::create_pipeline_endpoint::CreatePipelineEndpointOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreatePipelineEndpointOutputBuilder {
    pub(crate) pipeline_arn: ::std::option::Option<::std::string::String>,
    pub(crate) endpoint_id: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<crate::types::PipelineEndpointStatus>,
    pub(crate) vpc_id: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl CreatePipelineEndpointOutputBuilder {
    /// <p>The Amazon Resource Name (ARN) of the pipeline associated with the endpoint.</p>
    pub fn pipeline_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.pipeline_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the pipeline associated with the endpoint.</p>
    pub fn set_pipeline_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.pipeline_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the pipeline associated with the endpoint.</p>
    pub fn get_pipeline_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.pipeline_arn
    }
    /// <p>The unique identifier of the pipeline endpoint.</p>
    pub fn endpoint_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.endpoint_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the pipeline endpoint.</p>
    pub fn set_endpoint_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.endpoint_id = input;
        self
    }
    /// <p>The unique identifier of the pipeline endpoint.</p>
    pub fn get_endpoint_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.endpoint_id
    }
    /// <p>The current status of the pipeline endpoint.</p>
    pub fn status(mut self, input: crate::types::PipelineEndpointStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The current status of the pipeline endpoint.</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::PipelineEndpointStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The current status of the pipeline endpoint.</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::PipelineEndpointStatus> {
        &self.status
    }
    /// <p>The ID of the VPC where the pipeline endpoint was created.</p>
    pub fn vpc_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.vpc_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the VPC where the pipeline endpoint was created.</p>
    pub fn set_vpc_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.vpc_id = input;
        self
    }
    /// <p>The ID of the VPC where the pipeline endpoint was created.</p>
    pub fn get_vpc_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.vpc_id
    }
    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
    }
    /// Consumes the builder and constructs a [`CreatePipelineEndpointOutput`](crate::operation::create_pipeline_endpoint::CreatePipelineEndpointOutput).
    pub fn build(self) -> crate::operation::create_pipeline_endpoint::CreatePipelineEndpointOutput {
        crate::operation::create_pipeline_endpoint::CreatePipelineEndpointOutput {
            pipeline_arn: self.pipeline_arn,
            endpoint_id: self.endpoint_id,
            status: self.status,
            vpc_id: self.vpc_id,
            _request_id: self._request_id,
        }
    }
}