Struct aws_sdk_textract::types::builders::AdapterBuilder
source · #[non_exhaustive]pub struct AdapterBuilder { /* private fields */ }
Expand description
A builder for Adapter
.
Implementations§
source§impl AdapterBuilder
impl AdapterBuilder
sourcepub fn adapter_id(self, input: impl Into<String>) -> Self
pub fn adapter_id(self, input: impl Into<String>) -> Self
A unique identifier for the adapter resource.
This field is required.sourcepub fn set_adapter_id(self, input: Option<String>) -> Self
pub fn set_adapter_id(self, input: Option<String>) -> Self
A unique identifier for the adapter resource.
sourcepub fn get_adapter_id(&self) -> &Option<String>
pub fn get_adapter_id(&self) -> &Option<String>
A unique identifier for the adapter resource.
sourcepub fn pages(self, input: impl Into<String>) -> Self
pub fn pages(self, input: impl Into<String>) -> Self
Appends an item to pages
.
To override the contents of this collection use set_pages
.
Pages is a parameter that the user inputs to specify which pages to apply an adapter to. The following is a list of rules for using this parameter.
-
If a page is not specified, it is set to
["1"]
by default. -
The following characters are allowed in the parameter's string:
0 1 2 3 4 5 6 7 8 9 - *
. No whitespace is allowed. -
When using * to indicate all pages, it must be the only element in the list.
-
You can use page intervals, such as
["1-3", "1-1", "4-*"]
. Where*
indicates last page of document. -
Specified pages must be greater than 0 and less than or equal to the number of pages in the document.
sourcepub fn set_pages(self, input: Option<Vec<String>>) -> Self
pub fn set_pages(self, input: Option<Vec<String>>) -> Self
Pages is a parameter that the user inputs to specify which pages to apply an adapter to. The following is a list of rules for using this parameter.
-
If a page is not specified, it is set to
["1"]
by default. -
The following characters are allowed in the parameter's string:
0 1 2 3 4 5 6 7 8 9 - *
. No whitespace is allowed. -
When using * to indicate all pages, it must be the only element in the list.
-
You can use page intervals, such as
["1-3", "1-1", "4-*"]
. Where*
indicates last page of document. -
Specified pages must be greater than 0 and less than or equal to the number of pages in the document.
sourcepub fn get_pages(&self) -> &Option<Vec<String>>
pub fn get_pages(&self) -> &Option<Vec<String>>
Pages is a parameter that the user inputs to specify which pages to apply an adapter to. The following is a list of rules for using this parameter.
-
If a page is not specified, it is set to
["1"]
by default. -
The following characters are allowed in the parameter's string:
0 1 2 3 4 5 6 7 8 9 - *
. No whitespace is allowed. -
When using * to indicate all pages, it must be the only element in the list.
-
You can use page intervals, such as
["1-3", "1-1", "4-*"]
. Where*
indicates last page of document. -
Specified pages must be greater than 0 and less than or equal to the number of pages in the document.
sourcepub fn version(self, input: impl Into<String>) -> Self
pub fn version(self, input: impl Into<String>) -> Self
A string that identifies the version of the adapter.
This field is required.sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
A string that identifies the version of the adapter.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
A string that identifies the version of the adapter.
Trait Implementations§
source§impl Clone for AdapterBuilder
impl Clone for AdapterBuilder
source§fn clone(&self) -> AdapterBuilder
fn clone(&self) -> AdapterBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AdapterBuilder
impl Debug for AdapterBuilder
source§impl Default for AdapterBuilder
impl Default for AdapterBuilder
source§fn default() -> AdapterBuilder
fn default() -> AdapterBuilder
source§impl PartialEq for AdapterBuilder
impl PartialEq for AdapterBuilder
source§fn eq(&self, other: &AdapterBuilder) -> bool
fn eq(&self, other: &AdapterBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AdapterBuilder
Auto Trait Implementations§
impl Freeze for AdapterBuilder
impl RefUnwindSafe for AdapterBuilder
impl Send for AdapterBuilder
impl Sync for AdapterBuilder
impl Unpin for AdapterBuilder
impl UnwindSafe for AdapterBuilder
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