#[non_exhaustive]pub struct DocumentClassifierDocumentsBuilder { /* private fields */ }
Expand description
A builder for DocumentClassifierDocuments
.
Implementations§
source§impl DocumentClassifierDocumentsBuilder
impl DocumentClassifierDocumentsBuilder
sourcepub fn s3_uri(self, input: impl Into<String>) -> Self
pub fn s3_uri(self, input: impl Into<String>) -> Self
The S3 URI location of the training documents specified in the S3Uri CSV file.
This field is required.sourcepub fn set_s3_uri(self, input: Option<String>) -> Self
pub fn set_s3_uri(self, input: Option<String>) -> Self
The S3 URI location of the training documents specified in the S3Uri CSV file.
sourcepub fn get_s3_uri(&self) -> &Option<String>
pub fn get_s3_uri(&self) -> &Option<String>
The S3 URI location of the training documents specified in the S3Uri CSV file.
sourcepub fn test_s3_uri(self, input: impl Into<String>) -> Self
pub fn test_s3_uri(self, input: impl Into<String>) -> Self
The S3 URI location of the test documents included in the TestS3Uri CSV file. This field is not required if you do not specify a test CSV file.
sourcepub fn set_test_s3_uri(self, input: Option<String>) -> Self
pub fn set_test_s3_uri(self, input: Option<String>) -> Self
The S3 URI location of the test documents included in the TestS3Uri CSV file. This field is not required if you do not specify a test CSV file.
sourcepub fn get_test_s3_uri(&self) -> &Option<String>
pub fn get_test_s3_uri(&self) -> &Option<String>
The S3 URI location of the test documents included in the TestS3Uri CSV file. This field is not required if you do not specify a test CSV file.
sourcepub fn build(self) -> Result<DocumentClassifierDocuments, BuildError>
pub fn build(self) -> Result<DocumentClassifierDocuments, BuildError>
Consumes the builder and constructs a DocumentClassifierDocuments
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DocumentClassifierDocumentsBuilder
impl Clone for DocumentClassifierDocumentsBuilder
source§fn clone(&self) -> DocumentClassifierDocumentsBuilder
fn clone(&self) -> DocumentClassifierDocumentsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DocumentClassifierDocumentsBuilder
impl Default for DocumentClassifierDocumentsBuilder
source§fn default() -> DocumentClassifierDocumentsBuilder
fn default() -> DocumentClassifierDocumentsBuilder
source§impl PartialEq for DocumentClassifierDocumentsBuilder
impl PartialEq for DocumentClassifierDocumentsBuilder
source§fn eq(&self, other: &DocumentClassifierDocumentsBuilder) -> bool
fn eq(&self, other: &DocumentClassifierDocumentsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DocumentClassifierDocumentsBuilder
Auto Trait Implementations§
impl Freeze for DocumentClassifierDocumentsBuilder
impl RefUnwindSafe for DocumentClassifierDocumentsBuilder
impl Send for DocumentClassifierDocumentsBuilder
impl Sync for DocumentClassifierDocumentsBuilder
impl Unpin for DocumentClassifierDocumentsBuilder
impl UnwindSafe for DocumentClassifierDocumentsBuilder
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> 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