pub struct GetUsageFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetUsage
.
Gets the usage data of a usage plan in a specified time interval.
Implementations§
source§impl GetUsageFluentBuilder
impl GetUsageFluentBuilder
sourcepub fn as_input(&self) -> &GetUsageInputBuilder
pub fn as_input(&self) -> &GetUsageInputBuilder
Access the GetUsage as a reference.
sourcepub async fn send(
self
) -> Result<GetUsageOutput, SdkError<GetUsageError, HttpResponse>>
pub async fn send( self ) -> Result<GetUsageOutput, SdkError<GetUsageError, 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<GetUsageOutput, GetUsageError, Self>
pub fn customize( self ) -> CustomizableOperation<GetUsageOutput, GetUsageError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn into_paginator(self) -> GetUsagePaginator
pub fn into_paginator(self) -> GetUsagePaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a PaginationStream
.
sourcepub fn usage_plan_id(self, input: impl Into<String>) -> Self
pub fn usage_plan_id(self, input: impl Into<String>) -> Self
The Id of the usage plan associated with the usage data.
sourcepub fn set_usage_plan_id(self, input: Option<String>) -> Self
pub fn set_usage_plan_id(self, input: Option<String>) -> Self
The Id of the usage plan associated with the usage data.
sourcepub fn get_usage_plan_id(&self) -> &Option<String>
pub fn get_usage_plan_id(&self) -> &Option<String>
The Id of the usage plan associated with the usage data.
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
The Id of the API key associated with the resultant usage data.
sourcepub fn set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
The Id of the API key associated with the resultant usage data.
sourcepub fn get_key_id(&self) -> &Option<String>
pub fn get_key_id(&self) -> &Option<String>
The Id of the API key associated with the resultant usage data.
sourcepub fn start_date(self, input: impl Into<String>) -> Self
pub fn start_date(self, input: impl Into<String>) -> Self
The starting date (e.g., 2016-01-01) of the usage data.
sourcepub fn set_start_date(self, input: Option<String>) -> Self
pub fn set_start_date(self, input: Option<String>) -> Self
The starting date (e.g., 2016-01-01) of the usage data.
sourcepub fn get_start_date(&self) -> &Option<String>
pub fn get_start_date(&self) -> &Option<String>
The starting date (e.g., 2016-01-01) of the usage data.
sourcepub fn end_date(self, input: impl Into<String>) -> Self
pub fn end_date(self, input: impl Into<String>) -> Self
The ending date (e.g., 2016-12-31) of the usage data.
sourcepub fn set_end_date(self, input: Option<String>) -> Self
pub fn set_end_date(self, input: Option<String>) -> Self
The ending date (e.g., 2016-12-31) of the usage data.
sourcepub fn get_end_date(&self) -> &Option<String>
pub fn get_end_date(&self) -> &Option<String>
The ending date (e.g., 2016-12-31) of the usage data.
sourcepub fn position(self, input: impl Into<String>) -> Self
pub fn position(self, input: impl Into<String>) -> Self
The current pagination position in the paged result set.
sourcepub fn set_position(self, input: Option<String>) -> Self
pub fn set_position(self, input: Option<String>) -> Self
The current pagination position in the paged result set.
sourcepub fn get_position(&self) -> &Option<String>
pub fn get_position(&self) -> &Option<String>
The current pagination position in the paged result set.
sourcepub fn limit(self, input: i32) -> Self
pub fn limit(self, input: i32) -> Self
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
Trait Implementations§
source§impl Clone for GetUsageFluentBuilder
impl Clone for GetUsageFluentBuilder
source§fn clone(&self) -> GetUsageFluentBuilder
fn clone(&self) -> GetUsageFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more