#[non_exhaustive]pub struct DbSnapshotBuilder { /* private fields */ }
Expand description
A builder for DbSnapshot
.
Implementations§
Source§impl DbSnapshotBuilder
impl DbSnapshotBuilder
Sourcepub fn db_snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn db_snapshot_identifier(self, input: impl Into<String>) -> Self
Specifies the identifier for the DB snapshot.
Sourcepub fn set_db_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_db_snapshot_identifier(self, input: Option<String>) -> Self
Specifies the identifier for the DB snapshot.
Sourcepub fn get_db_snapshot_identifier(&self) -> &Option<String>
pub fn get_db_snapshot_identifier(&self) -> &Option<String>
Specifies the identifier for the DB snapshot.
Sourcepub fn db_instance_identifier(self, input: impl Into<String>) -> Self
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.
Sourcepub fn set_db_instance_identifier(self, input: Option<String>) -> Self
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.
Sourcepub fn get_db_instance_identifier(&self) -> &Option<String>
pub fn get_db_instance_identifier(&self) -> &Option<String>
Specifies the DB instance identifier of the DB instance this DB snapshot was created from.
Sourcepub fn snapshot_create_time(self, input: DateTime) -> Self
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.
Sourcepub fn set_snapshot_create_time(self, input: Option<DateTime>) -> Self
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.
Sourcepub fn get_snapshot_create_time(&self) -> &Option<DateTime>
pub fn get_snapshot_create_time(&self) -> &Option<DateTime>
Specifies when the snapshot was taken in Coordinated Universal Time (UTC). Changes for the copy when the snapshot is copied.
Sourcepub fn engine(self, input: impl Into<String>) -> Self
pub fn engine(self, input: impl Into<String>) -> Self
Specifies the name of the database engine.
Sourcepub fn set_engine(self, input: Option<String>) -> Self
pub fn set_engine(self, input: Option<String>) -> Self
Specifies the name of the database engine.
Sourcepub fn get_engine(&self) -> &Option<String>
pub fn get_engine(&self) -> &Option<String>
Specifies the name of the database engine.
Sourcepub fn allocated_storage(self, input: i32) -> Self
pub fn allocated_storage(self, input: i32) -> Self
Specifies the allocated storage size in gibibytes (GiB).
Sourcepub fn set_allocated_storage(self, input: Option<i32>) -> Self
pub fn set_allocated_storage(self, input: Option<i32>) -> Self
Specifies the allocated storage size in gibibytes (GiB).
Sourcepub fn get_allocated_storage(&self) -> &Option<i32>
pub fn get_allocated_storage(&self) -> &Option<i32>
Specifies the allocated storage size in gibibytes (GiB).
Sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
Specifies the status of this DB snapshot.
Sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
Specifies the status of this DB snapshot.
Sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
Specifies the status of this DB snapshot.
Sourcepub fn port(self, input: i32) -> Self
pub fn port(self, input: i32) -> Self
Specifies the port that the database engine was listening on at the time of the snapshot.
Sourcepub fn set_port(self, input: Option<i32>) -> Self
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.
Sourcepub fn get_port(&self) -> &Option<i32>
pub fn get_port(&self) -> &Option<i32>
Specifies the port that the database engine was listening on at the time of the snapshot.
Sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
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.
Sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
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.
Sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
Sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
Provides the VPC ID associated with the DB snapshot.
Sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
Provides the VPC ID associated with the DB snapshot.
Sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
Provides the VPC ID associated with the DB snapshot.
Sourcepub fn instance_create_time(self, input: DateTime) -> Self
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.
Sourcepub fn set_instance_create_time(self, input: Option<DateTime>) -> Self
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.
Sourcepub fn get_instance_create_time(&self) -> &Option<DateTime>
pub fn get_instance_create_time(&self) -> &Option<DateTime>
Specifies the time in Coordinated Universal Time (UTC) when the DB instance, from which the snapshot was taken, was created.
Sourcepub fn master_username(self, input: impl Into<String>) -> Self
pub fn master_username(self, input: impl Into<String>) -> Self
Provides the master username for the DB snapshot.
Sourcepub fn set_master_username(self, input: Option<String>) -> Self
pub fn set_master_username(self, input: Option<String>) -> Self
Provides the master username for the DB snapshot.
Sourcepub fn get_master_username(&self) -> &Option<String>
pub fn get_master_username(&self) -> &Option<String>
Provides the master username for the DB snapshot.
Sourcepub fn engine_version(self, input: impl Into<String>) -> Self
pub fn engine_version(self, input: impl Into<String>) -> Self
Specifies the version of the database engine.
Sourcepub fn set_engine_version(self, input: Option<String>) -> Self
pub fn set_engine_version(self, input: Option<String>) -> Self
Specifies the version of the database engine.
Sourcepub fn get_engine_version(&self) -> &Option<String>
pub fn get_engine_version(&self) -> &Option<String>
Specifies the version of the database engine.
Sourcepub fn license_model(self, input: impl Into<String>) -> Self
pub fn license_model(self, input: impl Into<String>) -> Self
License model information for the restored DB instance.
Sourcepub fn set_license_model(self, input: Option<String>) -> Self
pub fn set_license_model(self, input: Option<String>) -> Self
License model information for the restored DB instance.
Sourcepub fn get_license_model(&self) -> &Option<String>
pub fn get_license_model(&self) -> &Option<String>
License model information for the restored DB instance.
Sourcepub fn snapshot_type(self, input: impl Into<String>) -> Self
pub fn snapshot_type(self, input: impl Into<String>) -> Self
Provides the type of the DB snapshot.
Sourcepub fn set_snapshot_type(self, input: Option<String>) -> Self
pub fn set_snapshot_type(self, input: Option<String>) -> Self
Provides the type of the DB snapshot.
Sourcepub fn get_snapshot_type(&self) -> &Option<String>
pub fn get_snapshot_type(&self) -> &Option<String>
Provides the type of the DB snapshot.
Sourcepub fn iops(self, input: i32) -> Self
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.
Sourcepub fn set_iops(self, input: Option<i32>) -> Self
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.
Sourcepub fn get_iops(&self) -> &Option<i32>
pub fn get_iops(&self) -> &Option<i32>
Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.
Sourcepub fn option_group_name(self, input: impl Into<String>) -> Self
pub fn option_group_name(self, input: impl Into<String>) -> Self
Provides the option group name for the DB snapshot.
Sourcepub fn set_option_group_name(self, input: Option<String>) -> Self
pub fn set_option_group_name(self, input: Option<String>) -> Self
Provides the option group name for the DB snapshot.
Sourcepub fn get_option_group_name(&self) -> &Option<String>
pub fn get_option_group_name(&self) -> &Option<String>
Provides the option group name for the DB snapshot.
Sourcepub fn percent_progress(self, input: i32) -> Self
pub fn percent_progress(self, input: i32) -> Self
The percentage of the estimated data that has been transferred.
Sourcepub fn set_percent_progress(self, input: Option<i32>) -> Self
pub fn set_percent_progress(self, input: Option<i32>) -> Self
The percentage of the estimated data that has been transferred.
Sourcepub fn get_percent_progress(&self) -> &Option<i32>
pub fn get_percent_progress(&self) -> &Option<i32>
The percentage of the estimated data that has been transferred.
Sourcepub fn source_region(self, input: impl Into<String>) -> Self
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.
Sourcepub fn set_source_region(self, input: Option<String>) -> Self
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.
Sourcepub fn get_source_region(&self) -> &Option<String>
pub fn get_source_region(&self) -> &Option<String>
The Amazon Web Services Region that the DB snapshot was created in or copied from.
Sourcepub fn source_db_snapshot_identifier(self, input: impl Into<String>) -> Self
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.
Sourcepub fn set_source_db_snapshot_identifier(self, input: Option<String>) -> Self
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.
Sourcepub fn get_source_db_snapshot_identifier(&self) -> &Option<String>
pub fn get_source_db_snapshot_identifier(&self) -> &Option<String>
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.
Sourcepub fn storage_type(self, input: impl Into<String>) -> Self
pub fn storage_type(self, input: impl Into<String>) -> Self
Specifies the storage type associated with DB snapshot.
Sourcepub fn set_storage_type(self, input: Option<String>) -> Self
pub fn set_storage_type(self, input: Option<String>) -> Self
Specifies the storage type associated with DB snapshot.
Sourcepub fn get_storage_type(&self) -> &Option<String>
pub fn get_storage_type(&self) -> &Option<String>
Specifies the storage type associated with DB snapshot.
Sourcepub fn tde_credential_arn(self, input: impl Into<String>) -> Self
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.
Sourcepub fn set_tde_credential_arn(self, input: Option<String>) -> Self
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.
Sourcepub fn get_tde_credential_arn(&self) -> &Option<String>
pub fn get_tde_credential_arn(&self) -> &Option<String>
The ARN from the key store with which to associate the instance for TDE encryption.
Sourcepub fn set_encrypted(self, input: Option<bool>) -> Self
pub fn set_encrypted(self, input: Option<bool>) -> Self
Indicates whether the DB snapshot is encrypted.
Sourcepub fn get_encrypted(&self) -> &Option<bool>
pub fn get_encrypted(&self) -> &Option<bool>
Indicates whether the DB snapshot is encrypted.
Sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
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.
Sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
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.
Sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
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.
Sourcepub fn db_snapshot_arn(self, input: impl Into<String>) -> Self
pub fn db_snapshot_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for the DB snapshot.
Sourcepub fn set_db_snapshot_arn(self, input: Option<String>) -> Self
pub fn set_db_snapshot_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for the DB snapshot.
Sourcepub fn get_db_snapshot_arn(&self) -> &Option<String>
pub fn get_db_snapshot_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for the DB snapshot.
Sourcepub fn timezone(self, input: impl Into<String>) -> Self
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.
Sourcepub fn set_timezone(self, input: Option<String>) -> Self
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.
Sourcepub fn get_timezone(&self) -> &Option<String>
pub fn get_timezone(&self) -> &Option<String>
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.
Sourcepub fn iam_database_authentication_enabled(self, input: bool) -> Self
pub fn iam_database_authentication_enabled(self, input: bool) -> Self
Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled.
Sourcepub fn set_iam_database_authentication_enabled(
self,
input: Option<bool>,
) -> Self
pub fn set_iam_database_authentication_enabled( self, input: Option<bool>, ) -> Self
Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled.
Sourcepub fn get_iam_database_authentication_enabled(&self) -> &Option<bool>
pub fn get_iam_database_authentication_enabled(&self) -> &Option<bool>
Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled.
Sourcepub fn processor_features(self, input: ProcessorFeature) -> Self
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.
Sourcepub fn set_processor_features(
self,
input: Option<Vec<ProcessorFeature>>,
) -> Self
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.
Sourcepub fn get_processor_features(&self) -> &Option<Vec<ProcessorFeature>>
pub fn get_processor_features(&self) -> &Option<Vec<ProcessorFeature>>
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.
Sourcepub fn dbi_resource_id(self, input: impl Into<String>) -> Self
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.
Sourcepub fn set_dbi_resource_id(self, input: Option<String>) -> Self
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.
Sourcepub fn get_dbi_resource_id(&self) -> &Option<String>
pub fn get_dbi_resource_id(&self) -> &Option<String>
The identifier for the source DB instance, which can't be changed and which is unique to an Amazon Web Services Region.
Sourcepub fn tag_list(self, input: Tag) -> Self
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 or Tagging Amazon Aurora and Amazon RDS resources in the Amazon Aurora User Guide.
Sourcepub fn set_tag_list(self, input: Option<Vec<Tag>>) -> Self
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 or Tagging Amazon Aurora and Amazon RDS resources in the Amazon Aurora User Guide.
Sourcepub fn get_tag_list(&self) -> &Option<Vec<Tag>>
pub fn get_tag_list(&self) -> &Option<Vec<Tag>>
A list of tags.
For more information, see Tagging Amazon RDS resources in the Amazon RDS User Guide or Tagging Amazon Aurora and Amazon RDS resources in the Amazon Aurora User Guide.
Sourcepub fn original_snapshot_create_time(self, input: DateTime) -> Self
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.
Sourcepub fn set_original_snapshot_create_time(self, input: Option<DateTime>) -> Self
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.
Sourcepub fn get_original_snapshot_create_time(&self) -> &Option<DateTime>
pub fn get_original_snapshot_create_time(&self) -> &Option<DateTime>
Specifies the time of the CreateDBSnapshot operation in Coordinated Universal Time (UTC). Doesn't change when the snapshot is copied.
Sourcepub fn snapshot_database_time(self, input: DateTime) -> Self
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.
Sourcepub fn set_snapshot_database_time(self, input: Option<DateTime>) -> Self
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.
Sourcepub fn get_snapshot_database_time(&self) -> &Option<DateTime>
pub fn get_snapshot_database_time(&self) -> &Option<DateTime>
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.
Sourcepub fn snapshot_target(self, input: impl Into<String>) -> Self
pub fn snapshot_target(self, input: impl Into<String>) -> Self
Specifies where manual snapshots are stored: Dedicated Local Zones, Amazon Web Services Outposts or the Amazon Web Services Region.
Sourcepub fn set_snapshot_target(self, input: Option<String>) -> Self
pub fn set_snapshot_target(self, input: Option<String>) -> Self
Specifies where manual snapshots are stored: Dedicated Local Zones, Amazon Web Services Outposts or the Amazon Web Services Region.
Sourcepub fn get_snapshot_target(&self) -> &Option<String>
pub fn get_snapshot_target(&self) -> &Option<String>
Specifies where manual snapshots are stored: Dedicated Local Zones, Amazon Web Services Outposts or the Amazon Web Services Region.
Sourcepub fn storage_throughput(self, input: i32) -> Self
pub fn storage_throughput(self, input: i32) -> Self
Specifies the storage throughput for the DB snapshot.
Sourcepub fn set_storage_throughput(self, input: Option<i32>) -> Self
pub fn set_storage_throughput(self, input: Option<i32>) -> Self
Specifies the storage throughput for the DB snapshot.
Sourcepub fn get_storage_throughput(&self) -> &Option<i32>
pub fn get_storage_throughput(&self) -> &Option<i32>
Specifies the storage throughput for the DB snapshot.
Sourcepub fn db_system_id(self, input: impl Into<String>) -> Self
pub fn db_system_id(self, input: impl Into<String>) -> Self
The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. The Oracle SID is also the name of your CDB.
Sourcepub fn set_db_system_id(self, input: Option<String>) -> Self
pub fn set_db_system_id(self, input: Option<String>) -> Self
The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. The Oracle SID is also the name of your CDB.
Sourcepub fn get_db_system_id(&self) -> &Option<String>
pub fn get_db_system_id(&self) -> &Option<String>
The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. The Oracle SID is also the name of your CDB.
Sourcepub fn dedicated_log_volume(self, input: bool) -> Self
pub fn dedicated_log_volume(self, input: bool) -> Self
Indicates whether the DB instance has a dedicated log volume (DLV) enabled.
Sourcepub fn set_dedicated_log_volume(self, input: Option<bool>) -> Self
pub fn set_dedicated_log_volume(self, input: Option<bool>) -> Self
Indicates whether the DB instance has a dedicated log volume (DLV) enabled.
Sourcepub fn get_dedicated_log_volume(&self) -> &Option<bool>
pub fn get_dedicated_log_volume(&self) -> &Option<bool>
Indicates whether the DB instance has a dedicated log volume (DLV) enabled.
Sourcepub fn multi_tenant(self, input: bool) -> Self
pub fn multi_tenant(self, input: bool) -> Self
Indicates whether the snapshot is of a DB instance using the multi-tenant configuration (TRUE) or the single-tenant configuration (FALSE).
Sourcepub fn set_multi_tenant(self, input: Option<bool>) -> Self
pub fn set_multi_tenant(self, input: Option<bool>) -> Self
Indicates whether the snapshot is of a DB instance using the multi-tenant configuration (TRUE) or the single-tenant configuration (FALSE).
Sourcepub fn get_multi_tenant(&self) -> &Option<bool>
pub fn get_multi_tenant(&self) -> &Option<bool>
Indicates whether the snapshot is of a DB instance using the multi-tenant configuration (TRUE) or the single-tenant configuration (FALSE).
Sourcepub fn snapshot_availability_zone(self, input: impl Into<String>) -> Self
pub fn snapshot_availability_zone(self, input: impl Into<String>) -> Self
Specifies the name of the Availability Zone where RDS stores the DB snapshot. This value is valid only for snapshots that RDS stores on a Dedicated Local Zone.
Sourcepub fn set_snapshot_availability_zone(self, input: Option<String>) -> Self
pub fn set_snapshot_availability_zone(self, input: Option<String>) -> Self
Specifies the name of the Availability Zone where RDS stores the DB snapshot. This value is valid only for snapshots that RDS stores on a Dedicated Local Zone.
Sourcepub fn get_snapshot_availability_zone(&self) -> &Option<String>
pub fn get_snapshot_availability_zone(&self) -> &Option<String>
Specifies the name of the Availability Zone where RDS stores the DB snapshot. This value is valid only for snapshots that RDS stores on a Dedicated Local Zone.
Sourcepub fn build(self) -> DbSnapshot
pub fn build(self) -> DbSnapshot
Consumes the builder and constructs a DbSnapshot
.
Trait Implementations§
Source§impl Clone for DbSnapshotBuilder
impl Clone for DbSnapshotBuilder
Source§fn clone(&self) -> DbSnapshotBuilder
fn clone(&self) -> DbSnapshotBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DbSnapshotBuilder
impl Debug for DbSnapshotBuilder
Source§impl Default for DbSnapshotBuilder
impl Default for DbSnapshotBuilder
Source§fn default() -> DbSnapshotBuilder
fn default() -> DbSnapshotBuilder
Source§impl PartialEq for DbSnapshotBuilder
impl PartialEq for DbSnapshotBuilder
impl StructuralPartialEq for DbSnapshotBuilder
Auto Trait Implementations§
impl Freeze for DbSnapshotBuilder
impl RefUnwindSafe for DbSnapshotBuilder
impl Send for DbSnapshotBuilder
impl Sync for DbSnapshotBuilder
impl Unpin for DbSnapshotBuilder
impl UnwindSafe for DbSnapshotBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);