Struct aws_sdk_ec2::operation::enable_fast_snapshot_restores::builders::EnableFastSnapshotRestoresInputBuilder
source · #[non_exhaustive]pub struct EnableFastSnapshotRestoresInputBuilder { /* private fields */ }Expand description
A builder for EnableFastSnapshotRestoresInput.
Implementations§
source§impl EnableFastSnapshotRestoresInputBuilder
impl EnableFastSnapshotRestoresInputBuilder
sourcepub fn availability_zones(self, input: impl Into<String>) -> Self
pub fn availability_zones(self, input: impl Into<String>) -> Self
Appends an item to availability_zones.
To override the contents of this collection use set_availability_zones.
One or more Availability Zones. For example, us-east-2a.
sourcepub fn set_availability_zones(self, input: Option<Vec<String>>) -> Self
pub fn set_availability_zones(self, input: Option<Vec<String>>) -> Self
One or more Availability Zones. For example, us-east-2a.
sourcepub fn get_availability_zones(&self) -> &Option<Vec<String>>
pub fn get_availability_zones(&self) -> &Option<Vec<String>>
One or more Availability Zones. For example, us-east-2a.
sourcepub fn source_snapshot_ids(self, input: impl Into<String>) -> Self
pub fn source_snapshot_ids(self, input: impl Into<String>) -> Self
Appends an item to source_snapshot_ids.
To override the contents of this collection use set_source_snapshot_ids.
The IDs of one or more snapshots. For example, snap-1234567890abcdef0. You can specify a snapshot that was shared with you from another Amazon Web Services account.
sourcepub fn set_source_snapshot_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_source_snapshot_ids(self, input: Option<Vec<String>>) -> Self
The IDs of one or more snapshots. For example, snap-1234567890abcdef0. You can specify a snapshot that was shared with you from another Amazon Web Services account.
sourcepub fn get_source_snapshot_ids(&self) -> &Option<Vec<String>>
pub fn get_source_snapshot_ids(&self) -> &Option<Vec<String>>
The IDs of one or more snapshots. For example, snap-1234567890abcdef0. You can specify a snapshot that was shared with you from another Amazon Web Services account.
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<EnableFastSnapshotRestoresInput, BuildError>
pub fn build(self) -> Result<EnableFastSnapshotRestoresInput, BuildError>
Consumes the builder and constructs a EnableFastSnapshotRestoresInput.
source§impl EnableFastSnapshotRestoresInputBuilder
impl EnableFastSnapshotRestoresInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<EnableFastSnapshotRestoresOutput, SdkError<EnableFastSnapshotRestoresError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<EnableFastSnapshotRestoresOutput, SdkError<EnableFastSnapshotRestoresError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for EnableFastSnapshotRestoresInputBuilder
impl Clone for EnableFastSnapshotRestoresInputBuilder
source§fn clone(&self) -> EnableFastSnapshotRestoresInputBuilder
fn clone(&self) -> EnableFastSnapshotRestoresInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for EnableFastSnapshotRestoresInputBuilder
impl Default for EnableFastSnapshotRestoresInputBuilder
source§fn default() -> EnableFastSnapshotRestoresInputBuilder
fn default() -> EnableFastSnapshotRestoresInputBuilder
source§impl PartialEq<EnableFastSnapshotRestoresInputBuilder> for EnableFastSnapshotRestoresInputBuilder
impl PartialEq<EnableFastSnapshotRestoresInputBuilder> for EnableFastSnapshotRestoresInputBuilder
source§fn eq(&self, other: &EnableFastSnapshotRestoresInputBuilder) -> bool
fn eq(&self, other: &EnableFastSnapshotRestoresInputBuilder) -> bool
self and other values to be equal, and is used
by ==.