Struct aws_sdk_bedrockagent::operation::create_knowledge_base::builders::CreateKnowledgeBaseInputBuilder
source · #[non_exhaustive]pub struct CreateKnowledgeBaseInputBuilder { /* private fields */ }Expand description
A builder for CreateKnowledgeBaseInput.
Implementations§
source§impl CreateKnowledgeBaseInputBuilder
impl CreateKnowledgeBaseInputBuilder
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Client specified token used for idempotency checks
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Client specified token used for idempotency checks
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Client specified token used for idempotency checks
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
Name for a resource. This field is required.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
Description of the Resource.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
Description of the Resource.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
Description of the Resource.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
ARN of a IAM role. This field is required.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
ARN of a IAM role.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
ARN of a IAM role.
sourcepub fn knowledge_base_configuration(
self,
input: KnowledgeBaseConfiguration
) -> Self
pub fn knowledge_base_configuration( self, input: KnowledgeBaseConfiguration ) -> Self
Configures a bedrock knowledge base. This field is required.
sourcepub fn set_knowledge_base_configuration(
self,
input: Option<KnowledgeBaseConfiguration>
) -> Self
pub fn set_knowledge_base_configuration( self, input: Option<KnowledgeBaseConfiguration> ) -> Self
Configures a bedrock knowledge base.
sourcepub fn get_knowledge_base_configuration(
&self
) -> &Option<KnowledgeBaseConfiguration>
pub fn get_knowledge_base_configuration( &self ) -> &Option<KnowledgeBaseConfiguration>
Configures a bedrock knowledge base.
sourcepub fn storage_configuration(self, input: StorageConfiguration) -> Self
pub fn storage_configuration(self, input: StorageConfiguration) -> Self
Configures the physical storage of ingested data in a knowledge base. This field is required.
sourcepub fn set_storage_configuration(
self,
input: Option<StorageConfiguration>
) -> Self
pub fn set_storage_configuration( self, input: Option<StorageConfiguration> ) -> Self
Configures the physical storage of ingested data in a knowledge base.
sourcepub fn get_storage_configuration(&self) -> &Option<StorageConfiguration>
pub fn get_storage_configuration(&self) -> &Option<StorageConfiguration>
Configures the physical storage of ingested data in a knowledge base.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
A map of tag keys and values
A map of tag keys and values
A map of tag keys and values
sourcepub fn build(self) -> Result<CreateKnowledgeBaseInput, BuildError>
pub fn build(self) -> Result<CreateKnowledgeBaseInput, BuildError>
Consumes the builder and constructs a CreateKnowledgeBaseInput.
source§impl CreateKnowledgeBaseInputBuilder
impl CreateKnowledgeBaseInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateKnowledgeBaseOutput, SdkError<CreateKnowledgeBaseError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateKnowledgeBaseOutput, SdkError<CreateKnowledgeBaseError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateKnowledgeBaseInputBuilder
impl Clone for CreateKnowledgeBaseInputBuilder
source§fn clone(&self) -> CreateKnowledgeBaseInputBuilder
fn clone(&self) -> CreateKnowledgeBaseInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateKnowledgeBaseInputBuilder
impl Default for CreateKnowledgeBaseInputBuilder
source§fn default() -> CreateKnowledgeBaseInputBuilder
fn default() -> CreateKnowledgeBaseInputBuilder
source§impl PartialEq for CreateKnowledgeBaseInputBuilder
impl PartialEq for CreateKnowledgeBaseInputBuilder
source§fn eq(&self, other: &CreateKnowledgeBaseInputBuilder) -> bool
fn eq(&self, other: &CreateKnowledgeBaseInputBuilder) -> bool
self and other values to be equal, and is used
by ==.