#[non_exhaustive]pub struct SnapshotBuilder { /* private fields */ }
Expand description
A builder for Snapshot
.
Implementations§
Source§impl SnapshotBuilder
impl SnapshotBuilder
Sourcepub fn snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn snapshot_identifier(self, input: impl Into<String>) -> Self
The snapshot identifier that is provided in the request.
Sourcepub fn set_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_snapshot_identifier(self, input: Option<String>) -> Self
The snapshot identifier that is provided in the request.
Sourcepub fn get_snapshot_identifier(&self) -> &Option<String>
pub fn get_snapshot_identifier(&self) -> &Option<String>
The snapshot identifier that is provided in the request.
Sourcepub fn cluster_identifier(self, input: impl Into<String>) -> Self
pub fn cluster_identifier(self, input: impl Into<String>) -> Self
The identifier of the cluster for which the snapshot was taken.
Sourcepub fn set_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_cluster_identifier(self, input: Option<String>) -> Self
The identifier of the cluster for which the snapshot was taken.
Sourcepub fn get_cluster_identifier(&self) -> &Option<String>
pub fn get_cluster_identifier(&self) -> &Option<String>
The identifier of the cluster for which the snapshot was taken.
Sourcepub fn snapshot_create_time(self, input: DateTime) -> Self
pub fn snapshot_create_time(self, input: DateTime) -> Self
The time (in UTC format) when Amazon Redshift began the snapshot. A snapshot contains a copy of the cluster data as of this exact time.
Sourcepub fn set_snapshot_create_time(self, input: Option<DateTime>) -> Self
pub fn set_snapshot_create_time(self, input: Option<DateTime>) -> Self
The time (in UTC format) when Amazon Redshift began the snapshot. A snapshot contains a copy of the cluster data as of this exact time.
Sourcepub fn get_snapshot_create_time(&self) -> &Option<DateTime>
pub fn get_snapshot_create_time(&self) -> &Option<DateTime>
The time (in UTC format) when Amazon Redshift began the snapshot. A snapshot contains a copy of the cluster data as of this exact time.
Sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The snapshot status. The value of the status depends on the API operation used:
-
CreateClusterSnapshot
andCopyClusterSnapshot
returns status as "creating". -
DescribeClusterSnapshots
returns status as "creating", "available", "final snapshot", or "failed". -
DeleteClusterSnapshot
returns status as "deleted".
Sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The snapshot status. The value of the status depends on the API operation used:
-
CreateClusterSnapshot
andCopyClusterSnapshot
returns status as "creating". -
DescribeClusterSnapshots
returns status as "creating", "available", "final snapshot", or "failed". -
DeleteClusterSnapshot
returns status as "deleted".
Sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
The snapshot status. The value of the status depends on the API operation used:
-
CreateClusterSnapshot
andCopyClusterSnapshot
returns status as "creating". -
DescribeClusterSnapshots
returns status as "creating", "available", "final snapshot", or "failed". -
DeleteClusterSnapshot
returns status as "deleted".
Sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone in which the cluster was created.
Sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone in which the cluster was created.
Sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
The Availability Zone in which the cluster was created.
Sourcepub fn cluster_create_time(self, input: DateTime) -> Self
pub fn cluster_create_time(self, input: DateTime) -> Self
The time (UTC) when the cluster was originally created.
Sourcepub fn set_cluster_create_time(self, input: Option<DateTime>) -> Self
pub fn set_cluster_create_time(self, input: Option<DateTime>) -> Self
The time (UTC) when the cluster was originally created.
Sourcepub fn get_cluster_create_time(&self) -> &Option<DateTime>
pub fn get_cluster_create_time(&self) -> &Option<DateTime>
The time (UTC) when the cluster was originally created.
Sourcepub fn master_username(self, input: impl Into<String>) -> Self
pub fn master_username(self, input: impl Into<String>) -> Self
The admin user name for the cluster.
Sourcepub fn set_master_username(self, input: Option<String>) -> Self
pub fn set_master_username(self, input: Option<String>) -> Self
The admin user name for the cluster.
Sourcepub fn get_master_username(&self) -> &Option<String>
pub fn get_master_username(&self) -> &Option<String>
The admin user name for the cluster.
Sourcepub fn cluster_version(self, input: impl Into<String>) -> Self
pub fn cluster_version(self, input: impl Into<String>) -> Self
The version ID of the Amazon Redshift engine that is running on the cluster.
Sourcepub fn set_cluster_version(self, input: Option<String>) -> Self
pub fn set_cluster_version(self, input: Option<String>) -> Self
The version ID of the Amazon Redshift engine that is running on the cluster.
Sourcepub fn get_cluster_version(&self) -> &Option<String>
pub fn get_cluster_version(&self) -> &Option<String>
The version ID of the Amazon Redshift engine that is running on the cluster.
Sourcepub fn engine_full_version(self, input: impl Into<String>) -> Self
pub fn engine_full_version(self, input: impl Into<String>) -> Self
The cluster version of the cluster used to create the snapshot. For example, 1.0.15503.
Sourcepub fn set_engine_full_version(self, input: Option<String>) -> Self
pub fn set_engine_full_version(self, input: Option<String>) -> Self
The cluster version of the cluster used to create the snapshot. For example, 1.0.15503.
Sourcepub fn get_engine_full_version(&self) -> &Option<String>
pub fn get_engine_full_version(&self) -> &Option<String>
The cluster version of the cluster used to create the snapshot. For example, 1.0.15503.
Sourcepub fn snapshot_type(self, input: impl Into<String>) -> Self
pub fn snapshot_type(self, input: impl Into<String>) -> Self
The snapshot type. Snapshots created using CreateClusterSnapshot
and CopyClusterSnapshot
are of type "manual".
Sourcepub fn set_snapshot_type(self, input: Option<String>) -> Self
pub fn set_snapshot_type(self, input: Option<String>) -> Self
The snapshot type. Snapshots created using CreateClusterSnapshot
and CopyClusterSnapshot
are of type "manual".
Sourcepub fn get_snapshot_type(&self) -> &Option<String>
pub fn get_snapshot_type(&self) -> &Option<String>
The snapshot type. Snapshots created using CreateClusterSnapshot
and CopyClusterSnapshot
are of type "manual".
Sourcepub fn node_type(self, input: impl Into<String>) -> Self
pub fn node_type(self, input: impl Into<String>) -> Self
The node type of the nodes in the cluster.
Sourcepub fn set_node_type(self, input: Option<String>) -> Self
pub fn set_node_type(self, input: Option<String>) -> Self
The node type of the nodes in the cluster.
Sourcepub fn get_node_type(&self) -> &Option<String>
pub fn get_node_type(&self) -> &Option<String>
The node type of the nodes in the cluster.
Sourcepub fn number_of_nodes(self, input: i32) -> Self
pub fn number_of_nodes(self, input: i32) -> Self
The number of nodes in the cluster.
Sourcepub fn set_number_of_nodes(self, input: Option<i32>) -> Self
pub fn set_number_of_nodes(self, input: Option<i32>) -> Self
The number of nodes in the cluster.
Sourcepub fn get_number_of_nodes(&self) -> &Option<i32>
pub fn get_number_of_nodes(&self) -> &Option<i32>
The number of nodes in the cluster.
Sourcepub fn db_name(self, input: impl Into<String>) -> Self
pub fn db_name(self, input: impl Into<String>) -> Self
The name of the database that was created when the cluster was created.
Sourcepub fn set_db_name(self, input: Option<String>) -> Self
pub fn set_db_name(self, input: Option<String>) -> Self
The name of the database that was created when the cluster was created.
Sourcepub fn get_db_name(&self) -> &Option<String>
pub fn get_db_name(&self) -> &Option<String>
The name of the database that was created when the cluster was created.
Sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
The VPC identifier of the cluster if the snapshot is from a cluster in a VPC. Otherwise, this field is not in the output.
Sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The VPC identifier of the cluster if the snapshot is from a cluster in a VPC. Otherwise, this field is not in the output.
Sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
The VPC identifier of the cluster if the snapshot is from a cluster in a VPC. Otherwise, this field is not in the output.
Sourcepub fn encrypted(self, input: bool) -> Self
pub fn encrypted(self, input: bool) -> Self
If true
, the data in the snapshot is encrypted at rest.
Sourcepub fn set_encrypted(self, input: Option<bool>) -> Self
pub fn set_encrypted(self, input: Option<bool>) -> Self
If true
, the data in the snapshot is encrypted at rest.
Sourcepub fn get_encrypted(&self) -> &Option<bool>
pub fn get_encrypted(&self) -> &Option<bool>
If true
, the data in the snapshot is encrypted at rest.
Sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
Sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
Sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
Sourcepub fn encrypted_with_hsm(self, input: bool) -> Self
pub fn encrypted_with_hsm(self, input: bool) -> Self
A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster. true
indicates that the data is encrypted using HSM keys.
Sourcepub fn set_encrypted_with_hsm(self, input: Option<bool>) -> Self
pub fn set_encrypted_with_hsm(self, input: Option<bool>) -> Self
A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster. true
indicates that the data is encrypted using HSM keys.
Sourcepub fn get_encrypted_with_hsm(&self) -> &Option<bool>
pub fn get_encrypted_with_hsm(&self) -> &Option<bool>
A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster. true
indicates that the data is encrypted using HSM keys.
Sourcepub fn accounts_with_restore_access(
self,
input: AccountWithRestoreAccess,
) -> Self
pub fn accounts_with_restore_access( self, input: AccountWithRestoreAccess, ) -> Self
Appends an item to accounts_with_restore_access
.
To override the contents of this collection use set_accounts_with_restore_access
.
A list of the Amazon Web Services accounts authorized to restore the snapshot. Returns null
if no accounts are authorized. Visible only to the snapshot owner.
Sourcepub fn set_accounts_with_restore_access(
self,
input: Option<Vec<AccountWithRestoreAccess>>,
) -> Self
pub fn set_accounts_with_restore_access( self, input: Option<Vec<AccountWithRestoreAccess>>, ) -> Self
A list of the Amazon Web Services accounts authorized to restore the snapshot. Returns null
if no accounts are authorized. Visible only to the snapshot owner.
Sourcepub fn get_accounts_with_restore_access(
&self,
) -> &Option<Vec<AccountWithRestoreAccess>>
pub fn get_accounts_with_restore_access( &self, ) -> &Option<Vec<AccountWithRestoreAccess>>
A list of the Amazon Web Services accounts authorized to restore the snapshot. Returns null
if no accounts are authorized. Visible only to the snapshot owner.
Sourcepub fn owner_account(self, input: impl Into<String>) -> Self
pub fn owner_account(self, input: impl Into<String>) -> Self
For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
Sourcepub fn set_owner_account(self, input: Option<String>) -> Self
pub fn set_owner_account(self, input: Option<String>) -> Self
For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
Sourcepub fn get_owner_account(&self) -> &Option<String>
pub fn get_owner_account(&self) -> &Option<String>
For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
Sourcepub fn total_backup_size_in_mega_bytes(self, input: f64) -> Self
pub fn total_backup_size_in_mega_bytes(self, input: f64) -> Self
The size of the complete set of backup data that would be used to restore the cluster.
Sourcepub fn set_total_backup_size_in_mega_bytes(self, input: Option<f64>) -> Self
pub fn set_total_backup_size_in_mega_bytes(self, input: Option<f64>) -> Self
The size of the complete set of backup data that would be used to restore the cluster.
Sourcepub fn get_total_backup_size_in_mega_bytes(&self) -> &Option<f64>
pub fn get_total_backup_size_in_mega_bytes(&self) -> &Option<f64>
The size of the complete set of backup data that would be used to restore the cluster.
Sourcepub fn actual_incremental_backup_size_in_mega_bytes(self, input: f64) -> Self
pub fn actual_incremental_backup_size_in_mega_bytes(self, input: f64) -> Self
The size of the incremental backup.
Sourcepub fn set_actual_incremental_backup_size_in_mega_bytes(
self,
input: Option<f64>,
) -> Self
pub fn set_actual_incremental_backup_size_in_mega_bytes( self, input: Option<f64>, ) -> Self
The size of the incremental backup.
Sourcepub fn get_actual_incremental_backup_size_in_mega_bytes(&self) -> &Option<f64>
pub fn get_actual_incremental_backup_size_in_mega_bytes(&self) -> &Option<f64>
The size of the incremental backup.
Sourcepub fn backup_progress_in_mega_bytes(self, input: f64) -> Self
pub fn backup_progress_in_mega_bytes(self, input: f64) -> Self
The number of megabytes that have been transferred to the snapshot backup.
Sourcepub fn set_backup_progress_in_mega_bytes(self, input: Option<f64>) -> Self
pub fn set_backup_progress_in_mega_bytes(self, input: Option<f64>) -> Self
The number of megabytes that have been transferred to the snapshot backup.
Sourcepub fn get_backup_progress_in_mega_bytes(&self) -> &Option<f64>
pub fn get_backup_progress_in_mega_bytes(&self) -> &Option<f64>
The number of megabytes that have been transferred to the snapshot backup.
Sourcepub fn current_backup_rate_in_mega_bytes_per_second(self, input: f64) -> Self
pub fn current_backup_rate_in_mega_bytes_per_second(self, input: f64) -> Self
The number of megabytes per second being transferred to the snapshot backup. Returns 0
for a completed backup.
Sourcepub fn set_current_backup_rate_in_mega_bytes_per_second(
self,
input: Option<f64>,
) -> Self
pub fn set_current_backup_rate_in_mega_bytes_per_second( self, input: Option<f64>, ) -> Self
The number of megabytes per second being transferred to the snapshot backup. Returns 0
for a completed backup.
Sourcepub fn get_current_backup_rate_in_mega_bytes_per_second(&self) -> &Option<f64>
pub fn get_current_backup_rate_in_mega_bytes_per_second(&self) -> &Option<f64>
The number of megabytes per second being transferred to the snapshot backup. Returns 0
for a completed backup.
Sourcepub fn estimated_seconds_to_completion(self, input: i64) -> Self
pub fn estimated_seconds_to_completion(self, input: i64) -> Self
The estimate of the time remaining before the snapshot backup will complete. Returns 0
for a completed backup.
Sourcepub fn set_estimated_seconds_to_completion(self, input: Option<i64>) -> Self
pub fn set_estimated_seconds_to_completion(self, input: Option<i64>) -> Self
The estimate of the time remaining before the snapshot backup will complete. Returns 0
for a completed backup.
Sourcepub fn get_estimated_seconds_to_completion(&self) -> &Option<i64>
pub fn get_estimated_seconds_to_completion(&self) -> &Option<i64>
The estimate of the time remaining before the snapshot backup will complete. Returns 0
for a completed backup.
Sourcepub fn elapsed_time_in_seconds(self, input: i64) -> Self
pub fn elapsed_time_in_seconds(self, input: i64) -> Self
The amount of time an in-progress snapshot backup has been running, or the amount of time it took a completed backup to finish.
Sourcepub fn set_elapsed_time_in_seconds(self, input: Option<i64>) -> Self
pub fn set_elapsed_time_in_seconds(self, input: Option<i64>) -> Self
The amount of time an in-progress snapshot backup has been running, or the amount of time it took a completed backup to finish.
Sourcepub fn get_elapsed_time_in_seconds(&self) -> &Option<i64>
pub fn get_elapsed_time_in_seconds(&self) -> &Option<i64>
The amount of time an in-progress snapshot backup has been running, or the amount of time it took a completed backup to finish.
Sourcepub fn source_region(self, input: impl Into<String>) -> Self
pub fn source_region(self, input: impl Into<String>) -> Self
The source region from which the snapshot was copied.
Sourcepub fn set_source_region(self, input: Option<String>) -> Self
pub fn set_source_region(self, input: Option<String>) -> Self
The source region from which the snapshot was copied.
Sourcepub fn get_source_region(&self) -> &Option<String>
pub fn get_source_region(&self) -> &Option<String>
The source region from which the snapshot was copied.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The list of tags for the cluster snapshot.
The list of tags for the cluster snapshot.
The list of tags for the cluster snapshot.
Sourcepub fn restorable_node_types(self, input: impl Into<String>) -> Self
pub fn restorable_node_types(self, input: impl Into<String>) -> Self
Appends an item to restorable_node_types
.
To override the contents of this collection use set_restorable_node_types
.
The list of node types that this cluster snapshot is able to restore into.
Sourcepub fn set_restorable_node_types(self, input: Option<Vec<String>>) -> Self
pub fn set_restorable_node_types(self, input: Option<Vec<String>>) -> Self
The list of node types that this cluster snapshot is able to restore into.
Sourcepub fn get_restorable_node_types(&self) -> &Option<Vec<String>>
pub fn get_restorable_node_types(&self) -> &Option<Vec<String>>
The list of node types that this cluster snapshot is able to restore into.
Sourcepub fn enhanced_vpc_routing(self, input: bool) -> Self
pub fn enhanced_vpc_routing(self, input: bool) -> Self
An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.
If this option is true
, enhanced VPC routing is enabled.
Default: false
Sourcepub fn set_enhanced_vpc_routing(self, input: Option<bool>) -> Self
pub fn set_enhanced_vpc_routing(self, input: Option<bool>) -> Self
An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.
If this option is true
, enhanced VPC routing is enabled.
Default: false
Sourcepub fn get_enhanced_vpc_routing(&self) -> &Option<bool>
pub fn get_enhanced_vpc_routing(&self) -> &Option<bool>
An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.
If this option is true
, enhanced VPC routing is enabled.
Default: false
Sourcepub fn maintenance_track_name(self, input: impl Into<String>) -> Self
pub fn maintenance_track_name(self, input: impl Into<String>) -> Self
The name of the maintenance track for the snapshot.
Sourcepub fn set_maintenance_track_name(self, input: Option<String>) -> Self
pub fn set_maintenance_track_name(self, input: Option<String>) -> Self
The name of the maintenance track for the snapshot.
Sourcepub fn get_maintenance_track_name(&self) -> &Option<String>
pub fn get_maintenance_track_name(&self) -> &Option<String>
The name of the maintenance track for the snapshot.
Sourcepub fn manual_snapshot_retention_period(self, input: i32) -> Self
pub fn manual_snapshot_retention_period(self, input: i32) -> Self
The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
Sourcepub fn set_manual_snapshot_retention_period(self, input: Option<i32>) -> Self
pub fn set_manual_snapshot_retention_period(self, input: Option<i32>) -> Self
The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
Sourcepub fn get_manual_snapshot_retention_period(&self) -> &Option<i32>
pub fn get_manual_snapshot_retention_period(&self) -> &Option<i32>
The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
Sourcepub fn manual_snapshot_remaining_days(self, input: i32) -> Self
pub fn manual_snapshot_remaining_days(self, input: i32) -> Self
The number of days until a manual snapshot will pass its retention period.
Sourcepub fn set_manual_snapshot_remaining_days(self, input: Option<i32>) -> Self
pub fn set_manual_snapshot_remaining_days(self, input: Option<i32>) -> Self
The number of days until a manual snapshot will pass its retention period.
Sourcepub fn get_manual_snapshot_remaining_days(&self) -> &Option<i32>
pub fn get_manual_snapshot_remaining_days(&self) -> &Option<i32>
The number of days until a manual snapshot will pass its retention period.
Sourcepub fn snapshot_retention_start_time(self, input: DateTime) -> Self
pub fn snapshot_retention_start_time(self, input: DateTime) -> Self
A timestamp representing the start of the retention period for the snapshot.
Sourcepub fn set_snapshot_retention_start_time(self, input: Option<DateTime>) -> Self
pub fn set_snapshot_retention_start_time(self, input: Option<DateTime>) -> Self
A timestamp representing the start of the retention period for the snapshot.
Sourcepub fn get_snapshot_retention_start_time(&self) -> &Option<DateTime>
pub fn get_snapshot_retention_start_time(&self) -> &Option<DateTime>
A timestamp representing the start of the retention period for the snapshot.
Sourcepub fn master_password_secret_arn(self, input: impl Into<String>) -> Self
pub fn master_password_secret_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for the cluster's admin user credentials secret.
Sourcepub fn set_master_password_secret_arn(self, input: Option<String>) -> Self
pub fn set_master_password_secret_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for the cluster's admin user credentials secret.
Sourcepub fn get_master_password_secret_arn(&self) -> &Option<String>
pub fn get_master_password_secret_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for the cluster's admin user credentials secret.
Sourcepub fn master_password_secret_kms_key_id(self, input: impl Into<String>) -> Self
pub fn master_password_secret_kms_key_id(self, input: impl Into<String>) -> Self
The ID of the Key Management Service (KMS) key used to encrypt and store the cluster's admin credentials secret.
Sourcepub fn set_master_password_secret_kms_key_id(
self,
input: Option<String>,
) -> Self
pub fn set_master_password_secret_kms_key_id( self, input: Option<String>, ) -> Self
The ID of the Key Management Service (KMS) key used to encrypt and store the cluster's admin credentials secret.
Sourcepub fn get_master_password_secret_kms_key_id(&self) -> &Option<String>
pub fn get_master_password_secret_kms_key_id(&self) -> &Option<String>
The ID of the Key Management Service (KMS) key used to encrypt and store the cluster's admin credentials secret.
Sourcepub fn snapshot_arn(self, input: impl Into<String>) -> Self
pub fn snapshot_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the snapshot.
Sourcepub fn set_snapshot_arn(self, input: Option<String>) -> Self
pub fn set_snapshot_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the snapshot.
Sourcepub fn get_snapshot_arn(&self) -> &Option<String>
pub fn get_snapshot_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the snapshot.
Trait Implementations§
Source§impl Clone for SnapshotBuilder
impl Clone for SnapshotBuilder
Source§fn clone(&self) -> SnapshotBuilder
fn clone(&self) -> SnapshotBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SnapshotBuilder
impl Debug for SnapshotBuilder
Source§impl Default for SnapshotBuilder
impl Default for SnapshotBuilder
Source§fn default() -> SnapshotBuilder
fn default() -> SnapshotBuilder
Source§impl PartialEq for SnapshotBuilder
impl PartialEq for SnapshotBuilder
impl StructuralPartialEq for SnapshotBuilder
Auto Trait Implementations§
impl Freeze for SnapshotBuilder
impl RefUnwindSafe for SnapshotBuilder
impl Send for SnapshotBuilder
impl Sync for SnapshotBuilder
impl Unpin for SnapshotBuilder
impl UnwindSafe for SnapshotBuilder
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);