Struct aws_sdk_sagemaker::types::builders::FeatureDefinitionBuilder
source · #[non_exhaustive]pub struct FeatureDefinitionBuilder { /* private fields */ }
Expand description
A builder for FeatureDefinition
.
Implementations§
source§impl FeatureDefinitionBuilder
impl FeatureDefinitionBuilder
sourcepub fn feature_name(self, input: impl Into<String>) -> Self
pub fn feature_name(self, input: impl Into<String>) -> Self
The name of a feature. The type must be a string. FeatureName
cannot be any of the following: is_deleted
, write_time
, api_invocation_time
.
The name:
-
Must start with an alphanumeric character.
-
Can only include alphanumeric characters, underscores, and hyphens. Spaces are not allowed.
sourcepub fn set_feature_name(self, input: Option<String>) -> Self
pub fn set_feature_name(self, input: Option<String>) -> Self
The name of a feature. The type must be a string. FeatureName
cannot be any of the following: is_deleted
, write_time
, api_invocation_time
.
The name:
-
Must start with an alphanumeric character.
-
Can only include alphanumeric characters, underscores, and hyphens. Spaces are not allowed.
sourcepub fn get_feature_name(&self) -> &Option<String>
pub fn get_feature_name(&self) -> &Option<String>
The name of a feature. The type must be a string. FeatureName
cannot be any of the following: is_deleted
, write_time
, api_invocation_time
.
The name:
-
Must start with an alphanumeric character.
-
Can only include alphanumeric characters, underscores, and hyphens. Spaces are not allowed.
sourcepub fn feature_type(self, input: FeatureType) -> Self
pub fn feature_type(self, input: FeatureType) -> Self
The value type of a feature. Valid values are Integral, Fractional, or String.
This field is required.sourcepub fn set_feature_type(self, input: Option<FeatureType>) -> Self
pub fn set_feature_type(self, input: Option<FeatureType>) -> Self
The value type of a feature. Valid values are Integral, Fractional, or String.
sourcepub fn get_feature_type(&self) -> &Option<FeatureType>
pub fn get_feature_type(&self) -> &Option<FeatureType>
The value type of a feature. Valid values are Integral, Fractional, or String.
sourcepub fn collection_type(self, input: CollectionType) -> Self
pub fn collection_type(self, input: CollectionType) -> Self
A grouping of elements where each element within the collection must have the same feature type (String
, Integral
, or Fractional
).
-
List
: An ordered collection of elements. -
Set
: An unordered collection of unique elements. -
Vector
: A specialized list that represents a fixed-size array of elements. The vector dimension is determined by you. Must have elements with fractional feature types.
sourcepub fn set_collection_type(self, input: Option<CollectionType>) -> Self
pub fn set_collection_type(self, input: Option<CollectionType>) -> Self
A grouping of elements where each element within the collection must have the same feature type (String
, Integral
, or Fractional
).
-
List
: An ordered collection of elements. -
Set
: An unordered collection of unique elements. -
Vector
: A specialized list that represents a fixed-size array of elements. The vector dimension is determined by you. Must have elements with fractional feature types.
sourcepub fn get_collection_type(&self) -> &Option<CollectionType>
pub fn get_collection_type(&self) -> &Option<CollectionType>
A grouping of elements where each element within the collection must have the same feature type (String
, Integral
, or Fractional
).
-
List
: An ordered collection of elements. -
Set
: An unordered collection of unique elements. -
Vector
: A specialized list that represents a fixed-size array of elements. The vector dimension is determined by you. Must have elements with fractional feature types.
sourcepub fn collection_config(self, input: CollectionConfig) -> Self
pub fn collection_config(self, input: CollectionConfig) -> Self
Configuration for your collection.
sourcepub fn set_collection_config(self, input: Option<CollectionConfig>) -> Self
pub fn set_collection_config(self, input: Option<CollectionConfig>) -> Self
Configuration for your collection.
sourcepub fn get_collection_config(&self) -> &Option<CollectionConfig>
pub fn get_collection_config(&self) -> &Option<CollectionConfig>
Configuration for your collection.
sourcepub fn build(self) -> FeatureDefinition
pub fn build(self) -> FeatureDefinition
Consumes the builder and constructs a FeatureDefinition
.
Trait Implementations§
source§impl Clone for FeatureDefinitionBuilder
impl Clone for FeatureDefinitionBuilder
source§fn clone(&self) -> FeatureDefinitionBuilder
fn clone(&self) -> FeatureDefinitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FeatureDefinitionBuilder
impl Debug for FeatureDefinitionBuilder
source§impl Default for FeatureDefinitionBuilder
impl Default for FeatureDefinitionBuilder
source§fn default() -> FeatureDefinitionBuilder
fn default() -> FeatureDefinitionBuilder
source§impl PartialEq for FeatureDefinitionBuilder
impl PartialEq for FeatureDefinitionBuilder
impl StructuralPartialEq for FeatureDefinitionBuilder
Auto Trait Implementations§
impl Freeze for FeatureDefinitionBuilder
impl RefUnwindSafe for FeatureDefinitionBuilder
impl Send for FeatureDefinitionBuilder
impl Sync for FeatureDefinitionBuilder
impl Unpin for FeatureDefinitionBuilder
impl UnwindSafe for FeatureDefinitionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more