Struct aws_sdk_ec2::input::ConfirmProductInstanceInput
source · #[non_exhaustive]pub struct ConfirmProductInstanceInput { /* private fields */ }
Implementations§
source§impl ConfirmProductInstanceInput
impl ConfirmProductInstanceInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ConfirmProductInstance, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ConfirmProductInstance, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ConfirmProductInstance
>
Examples found in repository?
src/client.rs (line 13478)
13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ConfirmProductInstance,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ConfirmProductInstanceError>,
> {
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::ConfirmProductInstanceOutput,
aws_smithy_http::result::SdkError<crate::error::ConfirmProductInstanceError>,
> {
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 ConfirmProductInstanceInput
.
source§impl ConfirmProductInstanceInput
impl ConfirmProductInstanceInput
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance.
sourcepub fn product_code(&self) -> Option<&str>
pub fn product_code(&self) -> Option<&str>
The product code. This must be a product code that you own.
Trait Implementations§
source§impl Clone for ConfirmProductInstanceInput
impl Clone for ConfirmProductInstanceInput
source§fn clone(&self) -> ConfirmProductInstanceInput
fn clone(&self) -> ConfirmProductInstanceInput
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