Struct aws_sdk_textract::operation::create_adapter_version::builders::CreateAdapterVersionInputBuilder
source · #[non_exhaustive]pub struct CreateAdapterVersionInputBuilder { /* private fields */ }
Expand description
A builder for CreateAdapterVersionInput
.
Implementations§
source§impl CreateAdapterVersionInputBuilder
impl CreateAdapterVersionInputBuilder
sourcepub fn adapter_id(self, input: impl Into<String>) -> Self
pub fn adapter_id(self, input: impl Into<String>) -> Self
A string containing a unique ID for the adapter that will receive a new version.
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 string containing a unique ID for the adapter that will receive a new version.
sourcepub fn get_adapter_id(&self) -> &Option<String>
pub fn get_adapter_id(&self) -> &Option<String>
A string containing a unique ID for the adapter that will receive a new version.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
Idempotent token is used to recognize the request. If the same token is used with multiple CreateAdapterVersion requests, the same session is returned. This token is employed to avoid unintentionally creating the same session multiple times.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
Idempotent token is used to recognize the request. If the same token is used with multiple CreateAdapterVersion requests, the same session is returned. This token is employed to avoid unintentionally creating the same session multiple times.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
Idempotent token is used to recognize the request. If the same token is used with multiple CreateAdapterVersion requests, the same session is returned. This token is employed to avoid unintentionally creating the same session multiple times.
sourcepub fn dataset_config(self, input: AdapterVersionDatasetConfig) -> Self
pub fn dataset_config(self, input: AdapterVersionDatasetConfig) -> Self
Specifies a dataset used to train a new adapter version. Takes a ManifestS3Object as the value.
This field is required.sourcepub fn set_dataset_config(
self,
input: Option<AdapterVersionDatasetConfig>
) -> Self
pub fn set_dataset_config( self, input: Option<AdapterVersionDatasetConfig> ) -> Self
Specifies a dataset used to train a new adapter version. Takes a ManifestS3Object as the value.
sourcepub fn get_dataset_config(&self) -> &Option<AdapterVersionDatasetConfig>
pub fn get_dataset_config(&self) -> &Option<AdapterVersionDatasetConfig>
Specifies a dataset used to train a new adapter version. Takes a ManifestS3Object as the value.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The identifier for your AWS Key Management Service key (AWS KMS key). Used to encrypt your documents.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The identifier for your AWS Key Management Service key (AWS KMS key). Used to encrypt your documents.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The identifier for your AWS Key Management Service key (AWS KMS key). Used to encrypt your documents.
sourcepub fn output_config(self, input: OutputConfig) -> Self
pub fn output_config(self, input: OutputConfig) -> Self
Sets whether or not your output will go to a user created bucket. Used to set the name of the bucket, and the prefix on the output file.
OutputConfig
is an optional parameter which lets you adjust where your output will be placed. By default, Amazon Textract will store the results internally and can only be accessed by the Get API operations. With OutputConfig
enabled, you can set the name of the bucket the output will be sent to the file prefix of the results where you can download your results. Additionally, you can set the KMSKeyID
parameter to a customer master key (CMK) to encrypt your output. Without this parameter set Amazon Textract will encrypt server-side using the AWS managed CMK for Amazon S3.
Decryption of Customer Content is necessary for processing of the documents by Amazon Textract. If your account is opted out under an AI services opt out policy then all unencrypted Customer Content is immediately and permanently deleted after the Customer Content has been processed by the service. No copy of of the output is retained by Amazon Textract. For information about how to opt out, see Managing AI services opt-out policy.
For more information on data privacy, see the Data Privacy FAQ.
This field is required.sourcepub fn set_output_config(self, input: Option<OutputConfig>) -> Self
pub fn set_output_config(self, input: Option<OutputConfig>) -> Self
Sets whether or not your output will go to a user created bucket. Used to set the name of the bucket, and the prefix on the output file.
OutputConfig
is an optional parameter which lets you adjust where your output will be placed. By default, Amazon Textract will store the results internally and can only be accessed by the Get API operations. With OutputConfig
enabled, you can set the name of the bucket the output will be sent to the file prefix of the results where you can download your results. Additionally, you can set the KMSKeyID
parameter to a customer master key (CMK) to encrypt your output. Without this parameter set Amazon Textract will encrypt server-side using the AWS managed CMK for Amazon S3.
Decryption of Customer Content is necessary for processing of the documents by Amazon Textract. If your account is opted out under an AI services opt out policy then all unencrypted Customer Content is immediately and permanently deleted after the Customer Content has been processed by the service. No copy of of the output is retained by Amazon Textract. For information about how to opt out, see Managing AI services opt-out policy.
For more information on data privacy, see the Data Privacy FAQ.
sourcepub fn get_output_config(&self) -> &Option<OutputConfig>
pub fn get_output_config(&self) -> &Option<OutputConfig>
Sets whether or not your output will go to a user created bucket. Used to set the name of the bucket, and the prefix on the output file.
OutputConfig
is an optional parameter which lets you adjust where your output will be placed. By default, Amazon Textract will store the results internally and can only be accessed by the Get API operations. With OutputConfig
enabled, you can set the name of the bucket the output will be sent to the file prefix of the results where you can download your results. Additionally, you can set the KMSKeyID
parameter to a customer master key (CMK) to encrypt your output. Without this parameter set Amazon Textract will encrypt server-side using the AWS managed CMK for Amazon S3.
Decryption of Customer Content is necessary for processing of the documents by Amazon Textract. If your account is opted out under an AI services opt out policy then all unencrypted Customer Content is immediately and permanently deleted after the Customer Content has been processed by the service. No copy of of the output is retained by Amazon Textract. For information about how to opt out, see Managing AI services opt-out policy.
For more information on data privacy, see the Data Privacy FAQ.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
A set of tags (key-value pairs) that you want to attach to the adapter version.
A set of tags (key-value pairs) that you want to attach to the adapter version.
A set of tags (key-value pairs) that you want to attach to the adapter version.
sourcepub fn build(self) -> Result<CreateAdapterVersionInput, BuildError>
pub fn build(self) -> Result<CreateAdapterVersionInput, BuildError>
Consumes the builder and constructs a CreateAdapterVersionInput
.
source§impl CreateAdapterVersionInputBuilder
impl CreateAdapterVersionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateAdapterVersionOutput, SdkError<CreateAdapterVersionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateAdapterVersionOutput, SdkError<CreateAdapterVersionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateAdapterVersionInputBuilder
impl Clone for CreateAdapterVersionInputBuilder
source§fn clone(&self) -> CreateAdapterVersionInputBuilder
fn clone(&self) -> CreateAdapterVersionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateAdapterVersionInputBuilder
impl Default for CreateAdapterVersionInputBuilder
source§fn default() -> CreateAdapterVersionInputBuilder
fn default() -> CreateAdapterVersionInputBuilder
source§impl PartialEq for CreateAdapterVersionInputBuilder
impl PartialEq for CreateAdapterVersionInputBuilder
source§fn eq(&self, other: &CreateAdapterVersionInputBuilder) -> bool
fn eq(&self, other: &CreateAdapterVersionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateAdapterVersionInputBuilder
Auto Trait Implementations§
impl Freeze for CreateAdapterVersionInputBuilder
impl RefUnwindSafe for CreateAdapterVersionInputBuilder
impl Send for CreateAdapterVersionInputBuilder
impl Sync for CreateAdapterVersionInputBuilder
impl Unpin for CreateAdapterVersionInputBuilder
impl UnwindSafe for CreateAdapterVersionInputBuilder
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