Struct aws_sdk_neptunedata::operation::execute_gremlin_profile_query::builders::ExecuteGremlinProfileQueryFluentBuilder
source · pub struct ExecuteGremlinProfileQueryFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ExecuteGremlinProfileQuery
.
Executes a Gremlin Profile query, which runs a specified traversal, collects various metrics about the run, and produces a profile report as output. See Gremlin profile API in Neptune for details.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:ReadDataViaQuery IAM action in that cluster.
Note that the neptune-db:QueryLanguage:Gremlin IAM condition key can be used in the policy document to restrict the use of Gremlin queries (see Condition keys available in Neptune IAM data-access policy statements).
Implementations§
source§impl ExecuteGremlinProfileQueryFluentBuilder
impl ExecuteGremlinProfileQueryFluentBuilder
sourcepub fn as_input(&self) -> &ExecuteGremlinProfileQueryInputBuilder
pub fn as_input(&self) -> &ExecuteGremlinProfileQueryInputBuilder
Access the ExecuteGremlinProfileQuery as a reference.
sourcepub async fn send(
self
) -> Result<ExecuteGremlinProfileQueryOutput, SdkError<ExecuteGremlinProfileQueryError, HttpResponse>>
pub async fn send( self ) -> Result<ExecuteGremlinProfileQueryOutput, SdkError<ExecuteGremlinProfileQueryError, 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<ExecuteGremlinProfileQueryOutput, ExecuteGremlinProfileQueryError, Self>
pub fn customize( self ) -> CustomizableOperation<ExecuteGremlinProfileQueryOutput, ExecuteGremlinProfileQueryError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn gremlin_query(self, input: impl Into<String>) -> Self
pub fn gremlin_query(self, input: impl Into<String>) -> Self
The Gremlin query string to profile.
sourcepub fn set_gremlin_query(self, input: Option<String>) -> Self
pub fn set_gremlin_query(self, input: Option<String>) -> Self
The Gremlin query string to profile.
sourcepub fn get_gremlin_query(&self) -> &Option<String>
pub fn get_gremlin_query(&self) -> &Option<String>
The Gremlin query string to profile.
sourcepub fn results(self, input: bool) -> Self
pub fn results(self, input: bool) -> Self
If this flag is set to TRUE
, the query results are gathered and displayed as part of the profile report. If FALSE
, only the result count is displayed.
sourcepub fn set_results(self, input: Option<bool>) -> Self
pub fn set_results(self, input: Option<bool>) -> Self
If this flag is set to TRUE
, the query results are gathered and displayed as part of the profile report. If FALSE
, only the result count is displayed.
sourcepub fn get_results(&self) -> &Option<bool>
pub fn get_results(&self) -> &Option<bool>
If this flag is set to TRUE
, the query results are gathered and displayed as part of the profile report. If FALSE
, only the result count is displayed.
sourcepub fn chop(self, input: i32) -> Self
pub fn chop(self, input: i32) -> Self
If non-zero, causes the results string to be truncated at that number of characters. If set to zero, the string contains all the results.
sourcepub fn set_chop(self, input: Option<i32>) -> Self
pub fn set_chop(self, input: Option<i32>) -> Self
If non-zero, causes the results string to be truncated at that number of characters. If set to zero, the string contains all the results.
sourcepub fn get_chop(&self) -> &Option<i32>
pub fn get_chop(&self) -> &Option<i32>
If non-zero, causes the results string to be truncated at that number of characters. If set to zero, the string contains all the results.
sourcepub fn serializer(self, input: impl Into<String>) -> Self
pub fn serializer(self, input: impl Into<String>) -> Self
If non-null, the gathered results are returned in a serialized response message in the format specified by this parameter. See Gremlin profile API in Neptune for more information.
sourcepub fn set_serializer(self, input: Option<String>) -> Self
pub fn set_serializer(self, input: Option<String>) -> Self
If non-null, the gathered results are returned in a serialized response message in the format specified by this parameter. See Gremlin profile API in Neptune for more information.
sourcepub fn get_serializer(&self) -> &Option<String>
pub fn get_serializer(&self) -> &Option<String>
If non-null, the gathered results are returned in a serialized response message in the format specified by this parameter. See Gremlin profile API in Neptune for more information.
sourcepub fn index_ops(self, input: bool) -> Self
pub fn index_ops(self, input: bool) -> Self
If this flag is set to TRUE
, the results include a detailed report of all index operations that took place during query execution and serialization.
sourcepub fn set_index_ops(self, input: Option<bool>) -> Self
pub fn set_index_ops(self, input: Option<bool>) -> Self
If this flag is set to TRUE
, the results include a detailed report of all index operations that took place during query execution and serialization.
sourcepub fn get_index_ops(&self) -> &Option<bool>
pub fn get_index_ops(&self) -> &Option<bool>
If this flag is set to TRUE
, the results include a detailed report of all index operations that took place during query execution and serialization.
Trait Implementations§
source§impl Clone for ExecuteGremlinProfileQueryFluentBuilder
impl Clone for ExecuteGremlinProfileQueryFluentBuilder
source§fn clone(&self) -> ExecuteGremlinProfileQueryFluentBuilder
fn clone(&self) -> ExecuteGremlinProfileQueryFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for ExecuteGremlinProfileQueryFluentBuilder
impl !RefUnwindSafe for ExecuteGremlinProfileQueryFluentBuilder
impl Send for ExecuteGremlinProfileQueryFluentBuilder
impl Sync for ExecuteGremlinProfileQueryFluentBuilder
impl Unpin for ExecuteGremlinProfileQueryFluentBuilder
impl !UnwindSafe for ExecuteGremlinProfileQueryFluentBuilder
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> 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