#[non_exhaustive]pub struct CreateAdapterInputBuilder { /* private fields */ }Expand description
A builder for CreateAdapterInput.
Implementations§
source§impl CreateAdapterInputBuilder
impl CreateAdapterInputBuilder
sourcepub fn adapter_name(self, input: impl Into<String>) -> Self
pub fn adapter_name(self, input: impl Into<String>) -> Self
The name to be assigned to the adapter being created.
This field is required.sourcepub fn set_adapter_name(self, input: Option<String>) -> Self
pub fn set_adapter_name(self, input: Option<String>) -> Self
The name to be assigned to the adapter being created.
sourcepub fn get_adapter_name(&self) -> &Option<String>
pub fn get_adapter_name(&self) -> &Option<String>
The name to be assigned to the adapter being created.
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 CreateAdapter 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 CreateAdapter 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 CreateAdapter requests, the same session is returned. This token is employed to avoid unintentionally creating the same session multiple times.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description to be assigned to the adapter being created.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description to be assigned to the adapter being created.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description to be assigned to the adapter being created.
sourcepub fn feature_types(self, input: FeatureType) -> Self
pub fn feature_types(self, input: FeatureType) -> Self
Appends an item to feature_types.
To override the contents of this collection use set_feature_types.
The type of feature that the adapter is being trained on. Currrenly, supported feature types are: QUERIES
sourcepub fn set_feature_types(self, input: Option<Vec<FeatureType>>) -> Self
pub fn set_feature_types(self, input: Option<Vec<FeatureType>>) -> Self
The type of feature that the adapter is being trained on. Currrenly, supported feature types are: QUERIES
sourcepub fn get_feature_types(&self) -> &Option<Vec<FeatureType>>
pub fn get_feature_types(&self) -> &Option<Vec<FeatureType>>
The type of feature that the adapter is being trained on. Currrenly, supported feature types are: QUERIES
sourcepub fn auto_update(self, input: AutoUpdate) -> Self
pub fn auto_update(self, input: AutoUpdate) -> Self
Controls whether or not the adapter should automatically update.
sourcepub fn set_auto_update(self, input: Option<AutoUpdate>) -> Self
pub fn set_auto_update(self, input: Option<AutoUpdate>) -> Self
Controls whether or not the adapter should automatically update.
sourcepub fn get_auto_update(&self) -> &Option<AutoUpdate>
pub fn get_auto_update(&self) -> &Option<AutoUpdate>
Controls whether or not the adapter should automatically update.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
A list of tags to be added to the adapter.
A list of tags to be added to the adapter.
A list of tags to be added to the adapter.
sourcepub fn build(self) -> Result<CreateAdapterInput, BuildError>
pub fn build(self) -> Result<CreateAdapterInput, BuildError>
Consumes the builder and constructs a CreateAdapterInput.
source§impl CreateAdapterInputBuilder
impl CreateAdapterInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateAdapterOutput, SdkError<CreateAdapterError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateAdapterOutput, SdkError<CreateAdapterError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateAdapterInputBuilder
impl Clone for CreateAdapterInputBuilder
source§fn clone(&self) -> CreateAdapterInputBuilder
fn clone(&self) -> CreateAdapterInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateAdapterInputBuilder
impl Debug for CreateAdapterInputBuilder
source§impl Default for CreateAdapterInputBuilder
impl Default for CreateAdapterInputBuilder
source§fn default() -> CreateAdapterInputBuilder
fn default() -> CreateAdapterInputBuilder
impl StructuralPartialEq for CreateAdapterInputBuilder
Auto Trait Implementations§
impl Freeze for CreateAdapterInputBuilder
impl RefUnwindSafe for CreateAdapterInputBuilder
impl Send for CreateAdapterInputBuilder
impl Sync for CreateAdapterInputBuilder
impl Unpin for CreateAdapterInputBuilder
impl UnwindSafe for CreateAdapterInputBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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