aws-sdk-sagemaker 1.189.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 DescribeFeatureGroupInput {
    /// <p>The name or Amazon Resource Name (ARN) of the <code>FeatureGroup</code> you want described.</p>
    pub feature_group_name: ::std::option::Option<::std::string::String>,
    /// <p>A token to resume pagination of the list of <code>Features</code> (<code>FeatureDefinitions</code>). 2,500 <code>Features</code> are returned by default.</p>
    pub next_token: ::std::option::Option<::std::string::String>,
}
impl DescribeFeatureGroupInput {
    /// <p>The name or Amazon Resource Name (ARN) of the <code>FeatureGroup</code> you want described.</p>
    pub fn feature_group_name(&self) -> ::std::option::Option<&str> {
        self.feature_group_name.as_deref()
    }
    /// <p>A token to resume pagination of the list of <code>Features</code> (<code>FeatureDefinitions</code>). 2,500 <code>Features</code> are returned by default.</p>
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
}
impl DescribeFeatureGroupInput {
    /// Creates a new builder-style object to manufacture [`DescribeFeatureGroupInput`](crate::operation::describe_feature_group::DescribeFeatureGroupInput).
    pub fn builder() -> crate::operation::describe_feature_group::builders::DescribeFeatureGroupInputBuilder {
        crate::operation::describe_feature_group::builders::DescribeFeatureGroupInputBuilder::default()
    }
}

/// A builder for [`DescribeFeatureGroupInput`](crate::operation::describe_feature_group::DescribeFeatureGroupInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeFeatureGroupInputBuilder {
    pub(crate) feature_group_name: ::std::option::Option<::std::string::String>,
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
}
impl DescribeFeatureGroupInputBuilder {
    /// <p>The name or Amazon Resource Name (ARN) of the <code>FeatureGroup</code> you want described.</p>
    /// This field is required.
    pub fn feature_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.feature_group_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name or Amazon Resource Name (ARN) of the <code>FeatureGroup</code> you want described.</p>
    pub fn set_feature_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.feature_group_name = input;
        self
    }
    /// <p>The name or Amazon Resource Name (ARN) of the <code>FeatureGroup</code> you want described.</p>
    pub fn get_feature_group_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.feature_group_name
    }
    /// <p>A token to resume pagination of the list of <code>Features</code> (<code>FeatureDefinitions</code>). 2,500 <code>Features</code> are returned by default.</p>
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.next_token = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A token to resume pagination of the list of <code>Features</code> (<code>FeatureDefinitions</code>). 2,500 <code>Features</code> are returned by default.</p>
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// <p>A token to resume pagination of the list of <code>Features</code> (<code>FeatureDefinitions</code>). 2,500 <code>Features</code> are returned by default.</p>
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// Consumes the builder and constructs a [`DescribeFeatureGroupInput`](crate::operation::describe_feature_group::DescribeFeatureGroupInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_feature_group::DescribeFeatureGroupInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::describe_feature_group::DescribeFeatureGroupInput {
            feature_group_name: self.feature_group_name,
            next_token: self.next_token,
        })
    }
}