#[non_exhaustive]pub struct BundleInstanceInputBuilder { /* private fields */ }
Expand description
A builder for BundleInstanceInput
.
Implementations§
source§impl BundleInstanceInputBuilder
impl BundleInstanceInputBuilder
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 to bundle.
Type: String
Default: None
Required: Yes
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 to bundle.
Type: String
Default: None
Required: Yes
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
sourcepub fn storage(self, input: Storage) -> Self
pub fn storage(self, input: Storage) -> Self
The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
sourcepub fn set_storage(self, input: Option<Storage>) -> Self
pub fn set_storage(self, input: Option<Storage>) -> Self
The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
sourcepub fn get_storage(&self) -> &Option<Storage>
pub fn get_storage(&self) -> &Option<Storage>
The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
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<BundleInstanceInput, BuildError>
pub fn build(self) -> Result<BundleInstanceInput, BuildError>
Consumes the builder and constructs a BundleInstanceInput
.
source§impl BundleInstanceInputBuilder
impl BundleInstanceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<BundleInstanceOutput, SdkError<BundleInstanceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<BundleInstanceOutput, SdkError<BundleInstanceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for BundleInstanceInputBuilder
impl Clone for BundleInstanceInputBuilder
source§fn clone(&self) -> BundleInstanceInputBuilder
fn clone(&self) -> BundleInstanceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BundleInstanceInputBuilder
impl Debug for BundleInstanceInputBuilder
source§impl Default for BundleInstanceInputBuilder
impl Default for BundleInstanceInputBuilder
source§fn default() -> BundleInstanceInputBuilder
fn default() -> BundleInstanceInputBuilder
source§impl PartialEq<BundleInstanceInputBuilder> for BundleInstanceInputBuilder
impl PartialEq<BundleInstanceInputBuilder> for BundleInstanceInputBuilder
source§fn eq(&self, other: &BundleInstanceInputBuilder) -> bool
fn eq(&self, other: &BundleInstanceInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.