Struct aws_sdk_apigateway::client::fluent_builders::GetUsage
source · pub struct GetUsage { /* 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 GetUsage
impl GetUsage
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetUsage, AwsResponseRetryClassifier>, SdkError<GetUsageError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetUsage, AwsResponseRetryClassifier>, SdkError<GetUsageError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(self) -> Result<GetUsageOutput, SdkError<GetUsageError>>
pub async fn send(self) -> Result<GetUsageOutput, SdkError<GetUsageError>>
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 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 Stream.
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 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 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 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 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.