Struct aws_sdk_timestreamquery::operation::prepare_query::builders::PrepareQueryFluentBuilder
source · pub struct PrepareQueryFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to PrepareQuery
.
A synchronous operation that allows you to submit a query with parameters to be stored by Timestream for later running. Timestream only supports using this operation with the PrepareQueryRequest$ValidateOnly
set to true
.
Implementations§
source§impl PrepareQueryFluentBuilder
impl PrepareQueryFluentBuilder
sourcepub fn as_input(&self) -> &PrepareQueryInputBuilder
pub fn as_input(&self) -> &PrepareQueryInputBuilder
Access the PrepareQuery as a reference.
sourcepub async fn send(
self
) -> Result<PrepareQueryOutput, SdkError<PrepareQueryError, HttpResponse>>
pub async fn send( self ) -> Result<PrepareQueryOutput, SdkError<PrepareQueryError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<PrepareQueryOutput, PrepareQueryError, Self>
pub fn customize( self ) -> CustomizableOperation<PrepareQueryOutput, PrepareQueryError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn query_string(self, input: impl Into<String>) -> Self
pub fn query_string(self, input: impl Into<String>) -> Self
The Timestream query string that you want to use as a prepared statement. Parameter names can be specified in the query string @
character followed by an identifier.
sourcepub fn set_query_string(self, input: Option<String>) -> Self
pub fn set_query_string(self, input: Option<String>) -> Self
The Timestream query string that you want to use as a prepared statement. Parameter names can be specified in the query string @
character followed by an identifier.
sourcepub fn get_query_string(&self) -> &Option<String>
pub fn get_query_string(&self) -> &Option<String>
The Timestream query string that you want to use as a prepared statement. Parameter names can be specified in the query string @
character followed by an identifier.
sourcepub fn validate_only(self, input: bool) -> Self
pub fn validate_only(self, input: bool) -> Self
By setting this value to true
, Timestream will only validate that the query string is a valid Timestream query, and not store the prepared query for later use.
sourcepub fn set_validate_only(self, input: Option<bool>) -> Self
pub fn set_validate_only(self, input: Option<bool>) -> Self
By setting this value to true
, Timestream will only validate that the query string is a valid Timestream query, and not store the prepared query for later use.
sourcepub fn get_validate_only(&self) -> &Option<bool>
pub fn get_validate_only(&self) -> &Option<bool>
By setting this value to true
, Timestream will only validate that the query string is a valid Timestream query, and not store the prepared query for later use.
Trait Implementations§
source§impl Clone for PrepareQueryFluentBuilder
impl Clone for PrepareQueryFluentBuilder
source§fn clone(&self) -> PrepareQueryFluentBuilder
fn clone(&self) -> PrepareQueryFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more