aws-sdk-s3outposts 0.27.0

AWS SDK for Amazon S3 on Outposts
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 DeleteEndpointInput {
    /// <p>The ID of the endpoint.</p>
    #[doc(hidden)]
    pub endpoint_id: std::option::Option<std::string::String>,
    /// <p>The ID of the Outposts. </p>
    #[doc(hidden)]
    pub outpost_id: std::option::Option<std::string::String>,
}
impl DeleteEndpointInput {
    /// <p>The ID of the endpoint.</p>
    pub fn endpoint_id(&self) -> std::option::Option<&str> {
        self.endpoint_id.as_deref()
    }
    /// <p>The ID of the Outposts. </p>
    pub fn outpost_id(&self) -> std::option::Option<&str> {
        self.outpost_id.as_deref()
    }
}
impl DeleteEndpointInput {
    /// Creates a new builder-style object to manufacture [`DeleteEndpointInput`](crate::operation::delete_endpoint::DeleteEndpointInput).
    pub fn builder() -> crate::operation::delete_endpoint::builders::DeleteEndpointInputBuilder {
        crate::operation::delete_endpoint::builders::DeleteEndpointInputBuilder::default()
    }
}

/// A builder for [`DeleteEndpointInput`](crate::operation::delete_endpoint::DeleteEndpointInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteEndpointInputBuilder {
    pub(crate) endpoint_id: std::option::Option<std::string::String>,
    pub(crate) outpost_id: std::option::Option<std::string::String>,
}
impl DeleteEndpointInputBuilder {
    /// <p>The ID of the endpoint.</p>
    pub fn endpoint_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.endpoint_id = Some(input.into());
        self
    }
    /// <p>The ID of the endpoint.</p>
    pub fn set_endpoint_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.endpoint_id = input;
        self
    }
    /// <p>The ID of the Outposts. </p>
    pub fn outpost_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.outpost_id = Some(input.into());
        self
    }
    /// <p>The ID of the Outposts. </p>
    pub fn set_outpost_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.outpost_id = input;
        self
    }
    /// Consumes the builder and constructs a [`DeleteEndpointInput`](crate::operation::delete_endpoint::DeleteEndpointInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::delete_endpoint::DeleteEndpointInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::delete_endpoint::DeleteEndpointInput {
            endpoint_id: self.endpoint_id,
            outpost_id: self.outpost_id,
        })
    }
}