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 DescribeEndpointConfigInput {
    /// <p>The name of the endpoint configuration.</p>
    pub endpoint_config_name: ::std::option::Option<::std::string::String>,
}
impl DescribeEndpointConfigInput {
    /// <p>The name of the endpoint configuration.</p>
    pub fn endpoint_config_name(&self) -> ::std::option::Option<&str> {
        self.endpoint_config_name.as_deref()
    }
}
impl DescribeEndpointConfigInput {
    /// Creates a new builder-style object to manufacture [`DescribeEndpointConfigInput`](crate::operation::describe_endpoint_config::DescribeEndpointConfigInput).
    pub fn builder() -> crate::operation::describe_endpoint_config::builders::DescribeEndpointConfigInputBuilder {
        crate::operation::describe_endpoint_config::builders::DescribeEndpointConfigInputBuilder::default()
    }
}

/// A builder for [`DescribeEndpointConfigInput`](crate::operation::describe_endpoint_config::DescribeEndpointConfigInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeEndpointConfigInputBuilder {
    pub(crate) endpoint_config_name: ::std::option::Option<::std::string::String>,
}
impl DescribeEndpointConfigInputBuilder {
    /// <p>The name of the endpoint configuration.</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.</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.</p>
    pub fn get_endpoint_config_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.endpoint_config_name
    }
    /// Consumes the builder and constructs a [`DescribeEndpointConfigInput`](crate::operation::describe_endpoint_config::DescribeEndpointConfigInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::describe_endpoint_config::DescribeEndpointConfigInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::describe_endpoint_config::DescribeEndpointConfigInput {
            endpoint_config_name: self.endpoint_config_name,
        })
    }
}