Struct aws_sdk_ec2::operation::get_capacity_reservation_usage::builders::GetCapacityReservationUsageFluentBuilder
source · pub struct GetCapacityReservationUsageFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetCapacityReservationUsage
.
Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner and each Amazon Web Services account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only the Capacity Reservation owner's usage.
Implementations§
source§impl GetCapacityReservationUsageFluentBuilder
impl GetCapacityReservationUsageFluentBuilder
sourcepub fn as_input(&self) -> &GetCapacityReservationUsageInputBuilder
pub fn as_input(&self) -> &GetCapacityReservationUsageInputBuilder
Access the GetCapacityReservationUsage as a reference.
sourcepub async fn send(
self
) -> Result<GetCapacityReservationUsageOutput, SdkError<GetCapacityReservationUsageError, HttpResponse>>
pub async fn send( self ) -> Result<GetCapacityReservationUsageOutput, SdkError<GetCapacityReservationUsageError, 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 async fn customize(
self
) -> Result<CustomizableOperation<GetCapacityReservationUsageOutput, GetCapacityReservationUsageError>, SdkError<GetCapacityReservationUsageError>>
pub async fn customize( self ) -> Result<CustomizableOperation<GetCapacityReservationUsageOutput, GetCapacityReservationUsageError>, SdkError<GetCapacityReservationUsageError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn capacity_reservation_id(self, input: impl Into<String>) -> Self
pub fn capacity_reservation_id(self, input: impl Into<String>) -> Self
The ID of the Capacity Reservation.
sourcepub fn set_capacity_reservation_id(self, input: Option<String>) -> Self
pub fn set_capacity_reservation_id(self, input: Option<String>) -> Self
The ID of the Capacity Reservation.
sourcepub fn get_capacity_reservation_id(&self) -> &Option<String>
pub fn get_capacity_reservation_id(&self) -> &Option<String>
The ID of the Capacity Reservation.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The token to use to retrieve the next page of results.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The token to use to retrieve the next page of results.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
The token to use to retrieve the next page of results.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken
value. This value can be between 5 and 500. If maxResults
is given a larger value than 500, you receive an error.
Valid range: Minimum value of 1. Maximum value of 1000.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken
value. This value can be between 5 and 500. If maxResults
is given a larger value than 500, you receive an error.
Valid range: Minimum value of 1. Maximum value of 1000.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken
value. This value can be between 5 and 500. If maxResults
is given a larger value than 500, you receive an error.
Valid range: Minimum value of 1. Maximum value of 1000.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Trait Implementations§
source§impl Clone for GetCapacityReservationUsageFluentBuilder
impl Clone for GetCapacityReservationUsageFluentBuilder
source§fn clone(&self) -> GetCapacityReservationUsageFluentBuilder
fn clone(&self) -> GetCapacityReservationUsageFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more