Struct aws_sdk_lightsail::operation::create_relational_database_snapshot::builders::CreateRelationalDatabaseSnapshotFluentBuilder
source · pub struct CreateRelationalDatabaseSnapshotFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateRelationalDatabaseSnapshot
.
Creates a snapshot of your database in Amazon Lightsail. You can use snapshots for backups, to make copies of a database, and to save data before deleting a database.
The create relational database snapshot
operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.
Implementations§
source§impl CreateRelationalDatabaseSnapshotFluentBuilder
impl CreateRelationalDatabaseSnapshotFluentBuilder
sourcepub fn as_input(&self) -> &CreateRelationalDatabaseSnapshotInputBuilder
pub fn as_input(&self) -> &CreateRelationalDatabaseSnapshotInputBuilder
Access the CreateRelationalDatabaseSnapshot as a reference.
sourcepub async fn send(
self
) -> Result<CreateRelationalDatabaseSnapshotOutput, SdkError<CreateRelationalDatabaseSnapshotError, HttpResponse>>
pub async fn send( self ) -> Result<CreateRelationalDatabaseSnapshotOutput, SdkError<CreateRelationalDatabaseSnapshotError, HttpResponse>>
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, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateRelationalDatabaseSnapshotOutput, CreateRelationalDatabaseSnapshotError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateRelationalDatabaseSnapshotOutput, CreateRelationalDatabaseSnapshotError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn relational_database_name(self, input: impl Into<String>) -> Self
pub fn relational_database_name(self, input: impl Into<String>) -> Self
The name of the database on which to base your new snapshot.
sourcepub fn set_relational_database_name(self, input: Option<String>) -> Self
pub fn set_relational_database_name(self, input: Option<String>) -> Self
The name of the database on which to base your new snapshot.
sourcepub fn get_relational_database_name(&self) -> &Option<String>
pub fn get_relational_database_name(&self) -> &Option<String>
The name of the database on which to base your new snapshot.
sourcepub fn relational_database_snapshot_name(self, input: impl Into<String>) -> Self
pub fn relational_database_snapshot_name(self, input: impl Into<String>) -> Self
The name for your new database snapshot.
Constraints:
-
Must contain from 2 to 255 alphanumeric characters, or hyphens.
-
The first and last character must be a letter or number.
sourcepub fn set_relational_database_snapshot_name(
self,
input: Option<String>
) -> Self
pub fn set_relational_database_snapshot_name( self, input: Option<String> ) -> Self
The name for your new database snapshot.
Constraints:
-
Must contain from 2 to 255 alphanumeric characters, or hyphens.
-
The first and last character must be a letter or number.
sourcepub fn get_relational_database_snapshot_name(&self) -> &Option<String>
pub fn get_relational_database_snapshot_name(&self) -> &Option<String>
The name for your new database snapshot.
Constraints:
-
Must contain from 2 to 255 alphanumeric characters, or hyphens.
-
The first and last character must be a letter or number.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
Trait Implementations§
source§impl Clone for CreateRelationalDatabaseSnapshotFluentBuilder
impl Clone for CreateRelationalDatabaseSnapshotFluentBuilder
source§fn clone(&self) -> CreateRelationalDatabaseSnapshotFluentBuilder
fn clone(&self) -> CreateRelationalDatabaseSnapshotFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateRelationalDatabaseSnapshotFluentBuilder
impl !RefUnwindSafe for CreateRelationalDatabaseSnapshotFluentBuilder
impl Send for CreateRelationalDatabaseSnapshotFluentBuilder
impl Sync for CreateRelationalDatabaseSnapshotFluentBuilder
impl Unpin for CreateRelationalDatabaseSnapshotFluentBuilder
impl !UnwindSafe for CreateRelationalDatabaseSnapshotFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more