Struct aws_sdk_comprehend::types::builders::TaskConfigBuilder
source · #[non_exhaustive]pub struct TaskConfigBuilder { /* private fields */ }Expand description
A builder for TaskConfig.
Implementations§
source§impl TaskConfigBuilder
impl TaskConfigBuilder
sourcepub fn language_code(self, input: LanguageCode) -> Self
pub fn language_code(self, input: LanguageCode) -> Self
Language code for the language that the model supports.
This field is required.sourcepub fn set_language_code(self, input: Option<LanguageCode>) -> Self
pub fn set_language_code(self, input: Option<LanguageCode>) -> Self
Language code for the language that the model supports.
sourcepub fn get_language_code(&self) -> &Option<LanguageCode>
pub fn get_language_code(&self) -> &Option<LanguageCode>
Language code for the language that the model supports.
sourcepub fn document_classification_config(
self,
input: DocumentClassificationConfig
) -> Self
pub fn document_classification_config( self, input: DocumentClassificationConfig ) -> Self
Configuration required for a document classification model.
sourcepub fn set_document_classification_config(
self,
input: Option<DocumentClassificationConfig>
) -> Self
pub fn set_document_classification_config( self, input: Option<DocumentClassificationConfig> ) -> Self
Configuration required for a document classification model.
sourcepub fn get_document_classification_config(
&self
) -> &Option<DocumentClassificationConfig>
pub fn get_document_classification_config( &self ) -> &Option<DocumentClassificationConfig>
Configuration required for a document classification model.
sourcepub fn entity_recognition_config(self, input: EntityRecognitionConfig) -> Self
pub fn entity_recognition_config(self, input: EntityRecognitionConfig) -> Self
Configuration required for an entity recognition model.
sourcepub fn set_entity_recognition_config(
self,
input: Option<EntityRecognitionConfig>
) -> Self
pub fn set_entity_recognition_config( self, input: Option<EntityRecognitionConfig> ) -> Self
Configuration required for an entity recognition model.
sourcepub fn get_entity_recognition_config(&self) -> &Option<EntityRecognitionConfig>
pub fn get_entity_recognition_config(&self) -> &Option<EntityRecognitionConfig>
Configuration required for an entity recognition model.
sourcepub fn build(self) -> Result<TaskConfig, BuildError>
pub fn build(self) -> Result<TaskConfig, BuildError>
Consumes the builder and constructs a TaskConfig.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TaskConfigBuilder
impl Clone for TaskConfigBuilder
source§fn clone(&self) -> TaskConfigBuilder
fn clone(&self) -> TaskConfigBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TaskConfigBuilder
impl Debug for TaskConfigBuilder
source§impl Default for TaskConfigBuilder
impl Default for TaskConfigBuilder
source§fn default() -> TaskConfigBuilder
fn default() -> TaskConfigBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TaskConfigBuilder
impl PartialEq for TaskConfigBuilder
source§fn eq(&self, other: &TaskConfigBuilder) -> bool
fn eq(&self, other: &TaskConfigBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TaskConfigBuilder
Auto Trait Implementations§
impl Freeze for TaskConfigBuilder
impl RefUnwindSafe for TaskConfigBuilder
impl Send for TaskConfigBuilder
impl Sync for TaskConfigBuilder
impl Unpin for TaskConfigBuilder
impl UnwindSafe for TaskConfigBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.