aws-sdk-sagemaker 1.193.0

AWS SDK for Amazon SageMaker Service
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 DeleteEndpointConfigInput {
    /// <p>The name of the endpoint configuration that you want to delete.</p>
    pub endpoint_config_name: ::std::option::Option<::std::string::String>,
}
impl DeleteEndpointConfigInput {
    /// <p>The name of the endpoint configuration that you want to delete.</p>
    pub fn endpoint_config_name(&self) -> ::std::option::Option<&str> {
        self.endpoint_config_name.as_deref()
    }
}
impl DeleteEndpointConfigInput {
    /// Creates a new builder-style object to manufacture [`DeleteEndpointConfigInput`](crate::operation::delete_endpoint_config::DeleteEndpointConfigInput).
    pub fn builder() -> crate::operation::delete_endpoint_config::builders::DeleteEndpointConfigInputBuilder {
        crate::operation::delete_endpoint_config::builders::DeleteEndpointConfigInputBuilder::default()
    }
}

/// A builder for [`DeleteEndpointConfigInput`](crate::operation::delete_endpoint_config::DeleteEndpointConfigInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteEndpointConfigInputBuilder {
    pub(crate) endpoint_config_name: ::std::option::Option<::std::string::String>,
}
impl DeleteEndpointConfigInputBuilder {
    /// <p>The name of the endpoint configuration that you want to delete.</p>
    /// This field is required.
    pub fn endpoint_config_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.endpoint_config_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the endpoint configuration that you want to delete.</p>
    pub fn set_endpoint_config_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.endpoint_config_name = input;
        self
    }
    /// <p>The name of the endpoint configuration that you want to delete.</p>
    pub fn get_endpoint_config_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.endpoint_config_name
    }
    /// Consumes the builder and constructs a [`DeleteEndpointConfigInput`](crate::operation::delete_endpoint_config::DeleteEndpointConfigInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_endpoint_config::DeleteEndpointConfigInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::delete_endpoint_config::DeleteEndpointConfigInput {
            endpoint_config_name: self.endpoint_config_name,
        })
    }
}