Struct aws_sdk_frauddetector::operation::list_event_predictions::builders::ListEventPredictionsFluentBuilder
source · pub struct ListEventPredictionsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ListEventPredictions
.
Gets a list of past predictions. The list can be filtered by detector ID, detector version ID, event ID, event type, or by specifying a time period. If filter is not specified, the most recent prediction is returned.
For example, the following filter lists all past predictions for xyz
event type - { "eventType":{ "value": "xyz" }” }
This is a paginated API. If you provide a null maxResults
, this action will retrieve a maximum of 10 records per page. If you provide a maxResults
, the value must be between 50 and 100. To get the next page results, provide the nextToken
from the response as part of your request. A null nextToken
fetches the records from the beginning.
Implementations§
source§impl ListEventPredictionsFluentBuilder
impl ListEventPredictionsFluentBuilder
sourcepub fn as_input(&self) -> &ListEventPredictionsInputBuilder
pub fn as_input(&self) -> &ListEventPredictionsInputBuilder
Access the ListEventPredictions as a reference.
sourcepub async fn send(
self
) -> Result<ListEventPredictionsOutput, SdkError<ListEventPredictionsError, HttpResponse>>
pub async fn send( self ) -> Result<ListEventPredictionsOutput, SdkError<ListEventPredictionsError, 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<ListEventPredictionsOutput, ListEventPredictionsError, Self>
pub fn customize( self ) -> CustomizableOperation<ListEventPredictionsOutput, ListEventPredictionsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn into_paginator(self) -> ListEventPredictionsPaginator
pub fn into_paginator(self) -> ListEventPredictionsPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a PaginationStream
.
sourcepub fn event_id(self, input: FilterCondition) -> Self
pub fn event_id(self, input: FilterCondition) -> Self
The event ID.
sourcepub fn set_event_id(self, input: Option<FilterCondition>) -> Self
pub fn set_event_id(self, input: Option<FilterCondition>) -> Self
The event ID.
sourcepub fn get_event_id(&self) -> &Option<FilterCondition>
pub fn get_event_id(&self) -> &Option<FilterCondition>
The event ID.
sourcepub fn event_type(self, input: FilterCondition) -> Self
pub fn event_type(self, input: FilterCondition) -> Self
The event type associated with the detector.
sourcepub fn set_event_type(self, input: Option<FilterCondition>) -> Self
pub fn set_event_type(self, input: Option<FilterCondition>) -> Self
The event type associated with the detector.
sourcepub fn get_event_type(&self) -> &Option<FilterCondition>
pub fn get_event_type(&self) -> &Option<FilterCondition>
The event type associated with the detector.
sourcepub fn detector_id(self, input: FilterCondition) -> Self
pub fn detector_id(self, input: FilterCondition) -> Self
The detector ID.
sourcepub fn set_detector_id(self, input: Option<FilterCondition>) -> Self
pub fn set_detector_id(self, input: Option<FilterCondition>) -> Self
The detector ID.
sourcepub fn get_detector_id(&self) -> &Option<FilterCondition>
pub fn get_detector_id(&self) -> &Option<FilterCondition>
The detector ID.
sourcepub fn detector_version_id(self, input: FilterCondition) -> Self
pub fn detector_version_id(self, input: FilterCondition) -> Self
The detector version ID.
sourcepub fn set_detector_version_id(self, input: Option<FilterCondition>) -> Self
pub fn set_detector_version_id(self, input: Option<FilterCondition>) -> Self
The detector version ID.
sourcepub fn get_detector_version_id(&self) -> &Option<FilterCondition>
pub fn get_detector_version_id(&self) -> &Option<FilterCondition>
The detector version ID.
sourcepub fn prediction_time_range(self, input: PredictionTimeRange) -> Self
pub fn prediction_time_range(self, input: PredictionTimeRange) -> Self
The time period for when the predictions were generated.
sourcepub fn set_prediction_time_range(
self,
input: Option<PredictionTimeRange>
) -> Self
pub fn set_prediction_time_range( self, input: Option<PredictionTimeRange> ) -> Self
The time period for when the predictions were generated.
sourcepub fn get_prediction_time_range(&self) -> &Option<PredictionTimeRange>
pub fn get_prediction_time_range(&self) -> &Option<PredictionTimeRange>
The time period for when the predictions were generated.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
Identifies the next page of results to return. Use the token to make the call again to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
Identifies the next page of results to return. Use the token to make the call again to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
Identifies the next page of results to return. Use the token to make the call again to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of predictions to return for the request.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of predictions to return for the request.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of predictions to return for the request.
Trait Implementations§
source§impl Clone for ListEventPredictionsFluentBuilder
impl Clone for ListEventPredictionsFluentBuilder
source§fn clone(&self) -> ListEventPredictionsFluentBuilder
fn clone(&self) -> ListEventPredictionsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more