#[non_exhaustive]
pub struct DbSnapshotBuilder { /* private fields */ }
Expand description

A builder for DbSnapshot.

Implementations§

source§

impl DbSnapshotBuilder

source

pub fn db_snapshot_identifier(self, input: impl Into<String>) -> Self

Specifies the identifier for the DB snapshot.

source

pub fn set_db_snapshot_identifier(self, input: Option<String>) -> Self

Specifies the identifier for the DB snapshot.

source

pub fn db_instance_identifier(self, input: impl Into<String>) -> Self

Specifies the DB instance identifier of the DB instance this DB snapshot was created from.

source

pub fn set_db_instance_identifier(self, input: Option<String>) -> Self

Specifies the DB instance identifier of the DB instance this DB snapshot was created from.

source

pub fn snapshot_create_time(self, input: DateTime) -> Self

Specifies when the snapshot was taken in Coordinated Universal Time (UTC). Changes for the copy when the snapshot is copied.

source

pub fn set_snapshot_create_time(self, input: Option<DateTime>) -> Self

Specifies when the snapshot was taken in Coordinated Universal Time (UTC). Changes for the copy when the snapshot is copied.

source

pub fn engine(self, input: impl Into<String>) -> Self

Specifies the name of the database engine.

source

pub fn set_engine(self, input: Option<String>) -> Self

Specifies the name of the database engine.

source

pub fn allocated_storage(self, input: i32) -> Self

Specifies the allocated storage size in gibibytes (GiB).

source

pub fn set_allocated_storage(self, input: Option<i32>) -> Self

Specifies the allocated storage size in gibibytes (GiB).

source

pub fn status(self, input: impl Into<String>) -> Self

Specifies the status of this DB snapshot.

source

pub fn set_status(self, input: Option<String>) -> Self

Specifies the status of this DB snapshot.

source

pub fn port(self, input: i32) -> Self

Specifies the port that the database engine was listening on at the time of the snapshot.

source

pub fn set_port(self, input: Option<i32>) -> Self

Specifies the port that the database engine was listening on at the time of the snapshot.

source

pub fn availability_zone(self, input: impl Into<String>) -> Self

Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.

source

pub fn set_availability_zone(self, input: Option<String>) -> Self

Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.

source

pub fn vpc_id(self, input: impl Into<String>) -> Self

Provides the VPC ID associated with the DB snapshot.

source

pub fn set_vpc_id(self, input: Option<String>) -> Self

Provides the VPC ID associated with the DB snapshot.

source

pub fn instance_create_time(self, input: DateTime) -> Self

Specifies the time in Coordinated Universal Time (UTC) when the DB instance, from which the snapshot was taken, was created.

source

pub fn set_instance_create_time(self, input: Option<DateTime>) -> Self

Specifies the time in Coordinated Universal Time (UTC) when the DB instance, from which the snapshot was taken, was created.

source

pub fn master_username(self, input: impl Into<String>) -> Self

Provides the master username for the DB snapshot.

source

pub fn set_master_username(self, input: Option<String>) -> Self

Provides the master username for the DB snapshot.

source

pub fn engine_version(self, input: impl Into<String>) -> Self

Specifies the version of the database engine.

source

pub fn set_engine_version(self, input: Option<String>) -> Self

Specifies the version of the database engine.

source

pub fn license_model(self, input: impl Into<String>) -> Self

License model information for the restored DB instance.

source

pub fn set_license_model(self, input: Option<String>) -> Self

License model information for the restored DB instance.

source

pub fn snapshot_type(self, input: impl Into<String>) -> Self

Provides the type of the DB snapshot.

source

pub fn set_snapshot_type(self, input: Option<String>) -> Self

Provides the type of the DB snapshot.

source

pub fn iops(self, input: i32) -> Self

Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.

source

pub fn set_iops(self, input: Option<i32>) -> Self

Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.

source

pub fn option_group_name(self, input: impl Into<String>) -> Self

Provides the option group name for the DB snapshot.

source

pub fn set_option_group_name(self, input: Option<String>) -> Self

Provides the option group name for the DB snapshot.

source

pub fn percent_progress(self, input: i32) -> Self

The percentage of the estimated data that has been transferred.

source

pub fn set_percent_progress(self, input: Option<i32>) -> Self

The percentage of the estimated data that has been transferred.

source

pub fn source_region(self, input: impl Into<String>) -> Self

The Amazon Web Services Region that the DB snapshot was created in or copied from.

source

pub fn set_source_region(self, input: Option<String>) -> Self

The Amazon Web Services Region that the DB snapshot was created in or copied from.

source

pub fn source_db_snapshot_identifier(self, input: impl Into<String>) -> Self

The DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied from. It only has a value in the case of a cross-account or cross-Region copy.

source

pub fn set_source_db_snapshot_identifier(self, input: Option<String>) -> Self

The DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied from. It only has a value in the case of a cross-account or cross-Region copy.

source

pub fn storage_type(self, input: impl Into<String>) -> Self

Specifies the storage type associated with DB snapshot.

source

pub fn set_storage_type(self, input: Option<String>) -> Self

Specifies the storage type associated with DB snapshot.

source

pub fn tde_credential_arn(self, input: impl Into<String>) -> Self

The ARN from the key store with which to associate the instance for TDE encryption.

source

pub fn set_tde_credential_arn(self, input: Option<String>) -> Self

The ARN from the key store with which to associate the instance for TDE encryption.

source

pub fn encrypted(self, input: bool) -> Self

Specifies whether the DB snapshot is encrypted.

source

pub fn set_encrypted(self, input: Option<bool>) -> Self

Specifies whether the DB snapshot is encrypted.

source

pub fn kms_key_id(self, input: impl Into<String>) -> Self

If Encrypted is true, the Amazon Web Services KMS key identifier for the encrypted DB snapshot.

The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.

source

pub fn set_kms_key_id(self, input: Option<String>) -> Self

If Encrypted is true, the Amazon Web Services KMS key identifier for the encrypted DB snapshot.

The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.

source

pub fn db_snapshot_arn(self, input: impl Into<String>) -> Self

The Amazon Resource Name (ARN) for the DB snapshot.

source

pub fn set_db_snapshot_arn(self, input: Option<String>) -> Self

The Amazon Resource Name (ARN) for the DB snapshot.

source

pub fn timezone(self, input: impl Into<String>) -> Self

The time zone of the DB snapshot. In most cases, the Timezone element is empty. Timezone content appears only for snapshots taken from Microsoft SQL Server DB instances that were created with a time zone specified.

source

pub fn set_timezone(self, input: Option<String>) -> Self

The time zone of the DB snapshot. In most cases, the Timezone element is empty. Timezone content appears only for snapshots taken from Microsoft SQL Server DB instances that were created with a time zone specified.

source

pub fn iam_database_authentication_enabled(self, input: bool) -> Self

True if mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

source

pub fn set_iam_database_authentication_enabled( self, input: Option<bool> ) -> Self

True if mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

source

pub fn processor_features(self, input: ProcessorFeature) -> Self

Appends an item to processor_features.

To override the contents of this collection use set_processor_features.

The number of CPU cores and the number of threads per core for the DB instance class of the DB instance when the DB snapshot was created.

source

pub fn set_processor_features( self, input: Option<Vec<ProcessorFeature>> ) -> Self

The number of CPU cores and the number of threads per core for the DB instance class of the DB instance when the DB snapshot was created.

source

pub fn dbi_resource_id(self, input: impl Into<String>) -> Self

The identifier for the source DB instance, which can't be changed and which is unique to an Amazon Web Services Region.

source

pub fn set_dbi_resource_id(self, input: Option<String>) -> Self

The identifier for the source DB instance, which can't be changed and which is unique to an Amazon Web Services Region.

source

pub fn tag_list(self, input: Tag) -> Self

Appends an item to tag_list.

To override the contents of this collection use set_tag_list.

A list of tags. For more information, see Tagging Amazon RDS Resources in the Amazon RDS User Guide.

source

pub fn set_tag_list(self, input: Option<Vec<Tag>>) -> Self

A list of tags. For more information, see Tagging Amazon RDS Resources in the Amazon RDS User Guide.

source

pub fn original_snapshot_create_time(self, input: DateTime) -> Self

Specifies the time of the CreateDBSnapshot operation in Coordinated Universal Time (UTC). Doesn't change when the snapshot is copied.

source

pub fn set_original_snapshot_create_time(self, input: Option<DateTime>) -> Self

Specifies the time of the CreateDBSnapshot operation in Coordinated Universal Time (UTC). Doesn't change when the snapshot is copied.

source

pub fn snapshot_database_time(self, input: DateTime) -> Self

The timestamp of the most recent transaction applied to the database that you're backing up. Thus, if you restore a snapshot, SnapshotDatabaseTime is the most recent transaction in the restored DB instance. In contrast, originalSnapshotCreateTime specifies the system time that the snapshot completed.

If you back up a read replica, you can determine the replica lag by comparing SnapshotDatabaseTime with originalSnapshotCreateTime. For example, if originalSnapshotCreateTime is two hours later than SnapshotDatabaseTime, then the replica lag is two hours.

source

pub fn set_snapshot_database_time(self, input: Option<DateTime>) -> Self

The timestamp of the most recent transaction applied to the database that you're backing up. Thus, if you restore a snapshot, SnapshotDatabaseTime is the most recent transaction in the restored DB instance. In contrast, originalSnapshotCreateTime specifies the system time that the snapshot completed.

If you back up a read replica, you can determine the replica lag by comparing SnapshotDatabaseTime with originalSnapshotCreateTime. For example, if originalSnapshotCreateTime is two hours later than SnapshotDatabaseTime, then the replica lag is two hours.

source

pub fn snapshot_target(self, input: impl Into<String>) -> Self

Specifies where manual snapshots are stored: Amazon Web Services Outposts or the Amazon Web Services Region.

source

pub fn set_snapshot_target(self, input: Option<String>) -> Self

Specifies where manual snapshots are stored: Amazon Web Services Outposts or the Amazon Web Services Region.

source

pub fn storage_throughput(self, input: i32) -> Self

Specifies the storage throughput for the DB snapshot.

source

pub fn set_storage_throughput(self, input: Option<i32>) -> Self

Specifies the storage throughput for the DB snapshot.

source

pub fn build(self) -> DbSnapshot

Consumes the builder and constructs a DbSnapshot.

Trait Implementations§

source§

impl Clone for DbSnapshotBuilder

source§

fn clone(&self) -> DbSnapshotBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DbSnapshotBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DbSnapshotBuilder

source§

fn default() -> DbSnapshotBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq<DbSnapshotBuilder> for DbSnapshotBuilder

source§

fn eq(&self, other: &DbSnapshotBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for DbSnapshotBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more