#[non_exhaustive]pub struct StartImportJobInputBuilder { /* private fields */ }Expand description
A builder for StartImportJobInput.
Implementations§
source§impl StartImportJobInputBuilder
impl StartImportJobInputBuilder
sourcepub fn knowledge_base_id(self, input: impl Into<String>) -> Self
pub fn knowledge_base_id(self, input: impl Into<String>) -> Self
The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
-
For importing Wisdom quick responses, this should be a
QUICK_RESPONSEStype knowledge base.
sourcepub fn set_knowledge_base_id(self, input: Option<String>) -> Self
pub fn set_knowledge_base_id(self, input: Option<String>) -> Self
The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
-
For importing Wisdom quick responses, this should be a
QUICK_RESPONSEStype knowledge base.
sourcepub fn get_knowledge_base_id(&self) -> &Option<String>
pub fn get_knowledge_base_id(&self) -> &Option<String>
The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
-
For importing Wisdom quick responses, this should be a
QUICK_RESPONSEStype knowledge base.
sourcepub fn import_job_type(self, input: ImportJobType) -> Self
pub fn import_job_type(self, input: ImportJobType) -> Self
The type of the import job.
-
For importing quick response resource, set the value to
QUICK_RESPONSES.
sourcepub fn set_import_job_type(self, input: Option<ImportJobType>) -> Self
pub fn set_import_job_type(self, input: Option<ImportJobType>) -> Self
The type of the import job.
-
For importing quick response resource, set the value to
QUICK_RESPONSES.
sourcepub fn get_import_job_type(&self) -> &Option<ImportJobType>
pub fn get_import_job_type(&self) -> &Option<ImportJobType>
The type of the import job.
-
For importing quick response resource, set the value to
QUICK_RESPONSES.
sourcepub fn upload_id(self, input: impl Into<String>) -> Self
pub fn upload_id(self, input: impl Into<String>) -> Self
A pointer to the uploaded asset. This value is returned by StartContentUpload.
This field is required.sourcepub fn set_upload_id(self, input: Option<String>) -> Self
pub fn set_upload_id(self, input: Option<String>) -> Self
A pointer to the uploaded asset. This value is returned by StartContentUpload.
sourcepub fn get_upload_id(&self) -> &Option<String>
pub fn get_upload_id(&self) -> &Option<String>
A pointer to the uploaded asset. This value is returned by StartContentUpload.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
The tags used to organize, track, or control access for this resource.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
The tags used to organize, track, or control access for this resource.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
The tags used to organize, track, or control access for this resource.
sourcepub fn metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to metadata.
To override the contents of this collection use set_metadata.
The metadata fields of the imported Wisdom resources.
sourcepub fn set_metadata(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_metadata(self, input: Option<HashMap<String, String>>) -> Self
The metadata fields of the imported Wisdom resources.
sourcepub fn get_metadata(&self) -> &Option<HashMap<String, String>>
pub fn get_metadata(&self) -> &Option<HashMap<String, String>>
The metadata fields of the imported Wisdom resources.
sourcepub fn external_source_configuration(
self,
input: ExternalSourceConfiguration
) -> Self
pub fn external_source_configuration( self, input: ExternalSourceConfiguration ) -> Self
The configuration information of the external source that the resource data are imported from.
sourcepub fn set_external_source_configuration(
self,
input: Option<ExternalSourceConfiguration>
) -> Self
pub fn set_external_source_configuration( self, input: Option<ExternalSourceConfiguration> ) -> Self
The configuration information of the external source that the resource data are imported from.
sourcepub fn get_external_source_configuration(
&self
) -> &Option<ExternalSourceConfiguration>
pub fn get_external_source_configuration( &self ) -> &Option<ExternalSourceConfiguration>
The configuration information of the external source that the resource data are imported from.
sourcepub fn build(self) -> Result<StartImportJobInput, BuildError>
pub fn build(self) -> Result<StartImportJobInput, BuildError>
Consumes the builder and constructs a StartImportJobInput.
source§impl StartImportJobInputBuilder
impl StartImportJobInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<StartImportJobOutput, SdkError<StartImportJobError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<StartImportJobOutput, SdkError<StartImportJobError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for StartImportJobInputBuilder
impl Clone for StartImportJobInputBuilder
source§fn clone(&self) -> StartImportJobInputBuilder
fn clone(&self) -> StartImportJobInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for StartImportJobInputBuilder
impl Debug for StartImportJobInputBuilder
source§impl Default for StartImportJobInputBuilder
impl Default for StartImportJobInputBuilder
source§fn default() -> StartImportJobInputBuilder
fn default() -> StartImportJobInputBuilder
source§impl PartialEq for StartImportJobInputBuilder
impl PartialEq for StartImportJobInputBuilder
source§fn eq(&self, other: &StartImportJobInputBuilder) -> bool
fn eq(&self, other: &StartImportJobInputBuilder) -> bool
self and other values to be equal, and is used
by ==.