#[non_exhaustive]pub struct AcceptReservedInstancesExchangeQuoteInput { /* private fields */ }
Expand description
Contains the parameters for accepting the quote.
Implementations§
source§impl AcceptReservedInstancesExchangeQuoteInput
impl AcceptReservedInstancesExchangeQuoteInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AcceptReservedInstancesExchangeQuote, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AcceptReservedInstancesExchangeQuote, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AcceptReservedInstancesExchangeQuote
>
Examples found in repository?
src/client.rs (line 8360)
8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AcceptReservedInstancesExchangeQuote,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::AcceptReservedInstancesExchangeQuoteError,
>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::AcceptReservedInstancesExchangeQuoteOutput,
aws_smithy_http::result::SdkError<
crate::error::AcceptReservedInstancesExchangeQuoteError,
>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AcceptReservedInstancesExchangeQuoteInput
.
source§impl AcceptReservedInstancesExchangeQuoteInput
impl AcceptReservedInstancesExchangeQuoteInput
sourcepub fn dry_run(&self) -> Option<bool>
pub fn 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
.
sourcepub fn reserved_instance_ids(&self) -> Option<&[String]>
pub fn reserved_instance_ids(&self) -> Option<&[String]>
The IDs of the Convertible Reserved Instances to exchange for another Convertible Reserved Instance of the same or higher value.
sourcepub fn target_configurations(&self) -> Option<&[TargetConfigurationRequest]>
pub fn target_configurations(&self) -> Option<&[TargetConfigurationRequest]>
The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances.
Trait Implementations§
source§impl Clone for AcceptReservedInstancesExchangeQuoteInput
impl Clone for AcceptReservedInstancesExchangeQuoteInput
source§fn clone(&self) -> AcceptReservedInstancesExchangeQuoteInput
fn clone(&self) -> AcceptReservedInstancesExchangeQuoteInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more