#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for Snapshot
Implementations
sourceimpl Builder
impl Builder
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.
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.
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 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 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 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 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 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.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more