#[non_exhaustive]pub struct GetUsageInputBuilder { /* private fields */ }
Expand description
A builder for GetUsageInput
.
Implementations§
source§impl GetUsageInputBuilder
impl GetUsageInputBuilder
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.
This field is required.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.
This field is required.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.
This field is required.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.
sourcepub fn set_limit(self, input: Option<i32>) -> Self
pub fn set_limit(self, input: Option<i32>) -> Self
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
sourcepub fn get_limit(&self) -> &Option<i32>
pub fn get_limit(&self) -> &Option<i32>
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
sourcepub fn build(self) -> Result<GetUsageInput, BuildError>
pub fn build(self) -> Result<GetUsageInput, BuildError>
Consumes the builder and constructs a GetUsageInput
.
source§impl GetUsageInputBuilder
impl GetUsageInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetUsageOutput, SdkError<GetUsageError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetUsageOutput, SdkError<GetUsageError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetUsageInputBuilder
impl Clone for GetUsageInputBuilder
source§fn clone(&self) -> GetUsageInputBuilder
fn clone(&self) -> GetUsageInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetUsageInputBuilder
impl Debug for GetUsageInputBuilder
source§impl Default for GetUsageInputBuilder
impl Default for GetUsageInputBuilder
source§fn default() -> GetUsageInputBuilder
fn default() -> GetUsageInputBuilder
source§impl PartialEq for GetUsageInputBuilder
impl PartialEq for GetUsageInputBuilder
source§fn eq(&self, other: &GetUsageInputBuilder) -> bool
fn eq(&self, other: &GetUsageInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.