#[non_exhaustive]pub struct CreateSessionInputBuilder { /* private fields */ }Expand description
A builder for CreateSessionInput.
Implementations§
source§impl CreateSessionInputBuilder
impl CreateSessionInputBuilder
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
sourcepub fn assistant_id(self, input: impl Into<String>) -> Self
pub fn assistant_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
This field is required.sourcepub fn set_assistant_id(self, input: Option<String>) -> Self
pub fn set_assistant_id(self, input: Option<String>) -> Self
The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
sourcepub fn get_assistant_id(&self) -> &Option<String>
pub fn get_assistant_id(&self) -> &Option<String>
The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the session.
This field is required.sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
The tags used to organize, track, or control access for this resource.
The tags used to organize, track, or control access for this resource.
The tags used to organize, track, or control access for this resource.
sourcepub fn build(self) -> Result<CreateSessionInput, BuildError>
pub fn build(self) -> Result<CreateSessionInput, BuildError>
Consumes the builder and constructs a CreateSessionInput.
source§impl CreateSessionInputBuilder
impl CreateSessionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateSessionOutput, SdkError<CreateSessionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateSessionOutput, SdkError<CreateSessionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateSessionInputBuilder
impl Clone for CreateSessionInputBuilder
source§fn clone(&self) -> CreateSessionInputBuilder
fn clone(&self) -> CreateSessionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateSessionInputBuilder
impl Debug for CreateSessionInputBuilder
source§impl Default for CreateSessionInputBuilder
impl Default for CreateSessionInputBuilder
source§fn default() -> CreateSessionInputBuilder
fn default() -> CreateSessionInputBuilder
source§impl PartialEq for CreateSessionInputBuilder
impl PartialEq for CreateSessionInputBuilder
source§fn eq(&self, other: &CreateSessionInputBuilder) -> bool
fn eq(&self, other: &CreateSessionInputBuilder) -> bool
self and other values to be equal, and is used
by ==.