Struct aws_sdk_ec2::operation::confirm_product_instance::builders::ConfirmProductInstanceInputBuilder
source · #[non_exhaustive]pub struct ConfirmProductInstanceInputBuilder { /* private fields */ }Expand description
A builder for ConfirmProductInstanceInput.
Implementations§
source§impl ConfirmProductInstanceInputBuilder
impl ConfirmProductInstanceInputBuilder
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of the instance.
This field is required.sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The ID of the instance.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The ID of the instance.
sourcepub fn product_code(self, input: impl Into<String>) -> Self
pub fn product_code(self, input: impl Into<String>) -> Self
The product code. This must be a product code that you own.
This field is required.sourcepub fn set_product_code(self, input: Option<String>) -> Self
pub fn set_product_code(self, input: Option<String>) -> Self
The product code. This must be a product code that you own.
sourcepub fn get_product_code(&self) -> &Option<String>
pub fn get_product_code(&self) -> &Option<String>
The product code. This must be a product code that you own.
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.
sourcepub fn build(self) -> Result<ConfirmProductInstanceInput, BuildError>
pub fn build(self) -> Result<ConfirmProductInstanceInput, BuildError>
Consumes the builder and constructs a ConfirmProductInstanceInput.
source§impl ConfirmProductInstanceInputBuilder
impl ConfirmProductInstanceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ConfirmProductInstanceOutput, SdkError<ConfirmProductInstanceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ConfirmProductInstanceOutput, SdkError<ConfirmProductInstanceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ConfirmProductInstanceInputBuilder
impl Clone for ConfirmProductInstanceInputBuilder
source§fn clone(&self) -> ConfirmProductInstanceInputBuilder
fn clone(&self) -> ConfirmProductInstanceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ConfirmProductInstanceInputBuilder
impl Default for ConfirmProductInstanceInputBuilder
source§fn default() -> ConfirmProductInstanceInputBuilder
fn default() -> ConfirmProductInstanceInputBuilder
source§impl PartialEq for ConfirmProductInstanceInputBuilder
impl PartialEq for ConfirmProductInstanceInputBuilder
source§fn eq(&self, other: &ConfirmProductInstanceInputBuilder) -> bool
fn eq(&self, other: &ConfirmProductInstanceInputBuilder) -> bool
self and other values to be equal, and is used
by ==.