#[non_exhaustive]pub struct CreateSnapshotInputBuilder { /* private fields */ }
Expand description
A builder for CreateSnapshotInput
.
Implementations§
source§impl CreateSnapshotInputBuilder
impl CreateSnapshotInputBuilder
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the snapshot.
This field is required.sourcepub fn volume_id(self, input: impl Into<String>) -> Self
pub fn volume_id(self, input: impl Into<String>) -> Self
The ID of the volume that you are taking a snapshot of.
This field is required.sourcepub fn set_volume_id(self, input: Option<String>) -> Self
pub fn set_volume_id(self, input: Option<String>) -> Self
The ID of the volume that you are taking a snapshot of.
sourcepub fn get_volume_id(&self) -> &Option<String>
pub fn get_volume_id(&self) -> &Option<String>
The ID of the volume that you are taking a snapshot of.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A list of Tag
values, with a maximum of 50 elements.
A list of Tag
values, with a maximum of 50 elements.
A list of Tag
values, with a maximum of 50 elements.
sourcepub fn build(self) -> Result<CreateSnapshotInput, BuildError>
pub fn build(self) -> Result<CreateSnapshotInput, BuildError>
Consumes the builder and constructs a CreateSnapshotInput
.
source§impl CreateSnapshotInputBuilder
impl CreateSnapshotInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateSnapshotOutput, SdkError<CreateSnapshotError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateSnapshotOutput, SdkError<CreateSnapshotError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateSnapshotInputBuilder
impl Clone for CreateSnapshotInputBuilder
source§fn clone(&self) -> CreateSnapshotInputBuilder
fn clone(&self) -> CreateSnapshotInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateSnapshotInputBuilder
impl Debug for CreateSnapshotInputBuilder
source§impl Default for CreateSnapshotInputBuilder
impl Default for CreateSnapshotInputBuilder
source§fn default() -> CreateSnapshotInputBuilder
fn default() -> CreateSnapshotInputBuilder
source§impl PartialEq for CreateSnapshotInputBuilder
impl PartialEq for CreateSnapshotInputBuilder
source§fn eq(&self, other: &CreateSnapshotInputBuilder) -> bool
fn eq(&self, other: &CreateSnapshotInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.