#[non_exhaustive]pub struct QuerySessionContextBuilder { /* private fields */ }Expand description
A builder for QuerySessionContext.
Implementations§
Source§impl QuerySessionContextBuilder
impl QuerySessionContextBuilder
Sourcepub fn query_id(self, input: impl Into<String>) -> Self
pub fn query_id(self, input: impl Into<String>) -> Self
A unique identifier generated by the query engine for the query.
Sourcepub fn set_query_id(self, input: Option<String>) -> Self
pub fn set_query_id(self, input: Option<String>) -> Self
A unique identifier generated by the query engine for the query.
Sourcepub fn get_query_id(&self) -> &Option<String>
pub fn get_query_id(&self) -> &Option<String>
A unique identifier generated by the query engine for the query.
Sourcepub fn query_start_time(self, input: DateTime) -> Self
pub fn query_start_time(self, input: DateTime) -> Self
A timestamp provided by the query engine for when the query started.
Sourcepub fn set_query_start_time(self, input: Option<DateTime>) -> Self
pub fn set_query_start_time(self, input: Option<DateTime>) -> Self
A timestamp provided by the query engine for when the query started.
Sourcepub fn get_query_start_time(&self) -> &Option<DateTime>
pub fn get_query_start_time(&self) -> &Option<DateTime>
A timestamp provided by the query engine for when the query started.
Sourcepub fn cluster_id(self, input: impl Into<String>) -> Self
pub fn cluster_id(self, input: impl Into<String>) -> Self
An identifier string for the consumer cluster.
Sourcepub fn set_cluster_id(self, input: Option<String>) -> Self
pub fn set_cluster_id(self, input: Option<String>) -> Self
An identifier string for the consumer cluster.
Sourcepub fn get_cluster_id(&self) -> &Option<String>
pub fn get_cluster_id(&self) -> &Option<String>
An identifier string for the consumer cluster.
A cryptographically generated query identifier generated by Glue or Lake Formation.
A cryptographically generated query identifier generated by Glue or Lake Formation.
A cryptographically generated query identifier generated by Glue or Lake Formation.
Sourcepub fn additional_context(
self,
k: impl Into<String>,
v: impl Into<String>,
) -> Self
pub fn additional_context( self, k: impl Into<String>, v: impl Into<String>, ) -> Self
Adds a key-value pair to additional_context.
To override the contents of this collection use set_additional_context.
An opaque string-string map passed by the query engine.
Sourcepub fn set_additional_context(
self,
input: Option<HashMap<String, String>>,
) -> Self
pub fn set_additional_context( self, input: Option<HashMap<String, String>>, ) -> Self
An opaque string-string map passed by the query engine.
Sourcepub fn get_additional_context(&self) -> &Option<HashMap<String, String>>
pub fn get_additional_context(&self) -> &Option<HashMap<String, String>>
An opaque string-string map passed by the query engine.
Sourcepub fn build(self) -> QuerySessionContext
pub fn build(self) -> QuerySessionContext
Consumes the builder and constructs a QuerySessionContext.
Trait Implementations§
Source§impl Clone for QuerySessionContextBuilder
impl Clone for QuerySessionContextBuilder
Source§fn clone(&self) -> QuerySessionContextBuilder
fn clone(&self) -> QuerySessionContextBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QuerySessionContextBuilder
impl Debug for QuerySessionContextBuilder
Source§impl Default for QuerySessionContextBuilder
impl Default for QuerySessionContextBuilder
Source§fn default() -> QuerySessionContextBuilder
fn default() -> QuerySessionContextBuilder
Source§impl PartialEq for QuerySessionContextBuilder
impl PartialEq for QuerySessionContextBuilder
Source§fn eq(&self, other: &QuerySessionContextBuilder) -> bool
fn eq(&self, other: &QuerySessionContextBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QuerySessionContextBuilder
Auto Trait Implementations§
impl Freeze for QuerySessionContextBuilder
impl RefUnwindSafe for QuerySessionContextBuilder
impl Send for QuerySessionContextBuilder
impl Sync for QuerySessionContextBuilder
impl Unpin for QuerySessionContextBuilder
impl UnsafeUnpin for QuerySessionContextBuilder
impl UnwindSafe for QuerySessionContextBuilder
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§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