#[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
impl StructuralPartialEq for GetUsageInputBuilder
Auto Trait Implementations§
impl Freeze for GetUsageInputBuilder
impl RefUnwindSafe for GetUsageInputBuilder
impl Send for GetUsageInputBuilder
impl Sync for GetUsageInputBuilder
impl Unpin for GetUsageInputBuilder
impl UnwindSafe for GetUsageInputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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