Struct aws_sdk_rds::operation::modify_db_cluster_snapshot_attribute::builders::ModifyDbClusterSnapshotAttributeInputBuilder
source · #[non_exhaustive]pub struct ModifyDbClusterSnapshotAttributeInputBuilder { /* private fields */ }Expand description
A builder for ModifyDbClusterSnapshotAttributeInput.
Implementations§
source§impl ModifyDbClusterSnapshotAttributeInputBuilder
impl ModifyDbClusterSnapshotAttributeInputBuilder
sourcepub fn db_cluster_snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn db_cluster_snapshot_identifier(self, input: impl Into<String>) -> Self
The identifier for the DB cluster snapshot to modify the attributes for.
This field is required.sourcepub fn set_db_cluster_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_db_cluster_snapshot_identifier(self, input: Option<String>) -> Self
The identifier for the DB cluster snapshot to modify the attributes for.
sourcepub fn get_db_cluster_snapshot_identifier(&self) -> &Option<String>
pub fn get_db_cluster_snapshot_identifier(&self) -> &Option<String>
The identifier for the DB cluster snapshot to modify the attributes for.
sourcepub fn attribute_name(self, input: impl Into<String>) -> Self
pub fn attribute_name(self, input: impl Into<String>) -> Self
The name of the DB cluster snapshot attribute to modify.
To manage authorization for other Amazon Web Services accounts to copy or restore a manual DB cluster snapshot, set this value to restore.
To view the list of attributes available to modify, use the DescribeDBClusterSnapshotAttributes API operation.
sourcepub fn set_attribute_name(self, input: Option<String>) -> Self
pub fn set_attribute_name(self, input: Option<String>) -> Self
The name of the DB cluster snapshot attribute to modify.
To manage authorization for other Amazon Web Services accounts to copy or restore a manual DB cluster snapshot, set this value to restore.
To view the list of attributes available to modify, use the DescribeDBClusterSnapshotAttributes API operation.
sourcepub fn get_attribute_name(&self) -> &Option<String>
pub fn get_attribute_name(&self) -> &Option<String>
The name of the DB cluster snapshot attribute to modify.
To manage authorization for other Amazon Web Services accounts to copy or restore a manual DB cluster snapshot, set this value to restore.
To view the list of attributes available to modify, use the DescribeDBClusterSnapshotAttributes API operation.
sourcepub fn values_to_add(self, input: impl Into<String>) -> Self
pub fn values_to_add(self, input: impl Into<String>) -> Self
Appends an item to values_to_add.
To override the contents of this collection use set_values_to_add.
A list of DB cluster snapshot attributes to add to the attribute specified by AttributeName.
To authorize other Amazon Web Services accounts to copy or restore a manual DB cluster snapshot, set this list to include one or more Amazon Web Services account IDs, or all to make the manual DB cluster snapshot restorable by any Amazon Web Services account. Do not add the all value for any manual DB cluster snapshots that contain private information that you don't want available to all Amazon Web Services accounts.
sourcepub fn set_values_to_add(self, input: Option<Vec<String>>) -> Self
pub fn set_values_to_add(self, input: Option<Vec<String>>) -> Self
A list of DB cluster snapshot attributes to add to the attribute specified by AttributeName.
To authorize other Amazon Web Services accounts to copy or restore a manual DB cluster snapshot, set this list to include one or more Amazon Web Services account IDs, or all to make the manual DB cluster snapshot restorable by any Amazon Web Services account. Do not add the all value for any manual DB cluster snapshots that contain private information that you don't want available to all Amazon Web Services accounts.
sourcepub fn get_values_to_add(&self) -> &Option<Vec<String>>
pub fn get_values_to_add(&self) -> &Option<Vec<String>>
A list of DB cluster snapshot attributes to add to the attribute specified by AttributeName.
To authorize other Amazon Web Services accounts to copy or restore a manual DB cluster snapshot, set this list to include one or more Amazon Web Services account IDs, or all to make the manual DB cluster snapshot restorable by any Amazon Web Services account. Do not add the all value for any manual DB cluster snapshots that contain private information that you don't want available to all Amazon Web Services accounts.
sourcepub fn values_to_remove(self, input: impl Into<String>) -> Self
pub fn values_to_remove(self, input: impl Into<String>) -> Self
Appends an item to values_to_remove.
To override the contents of this collection use set_values_to_remove.
A list of DB cluster snapshot attributes to remove from the attribute specified by AttributeName.
To remove authorization for other Amazon Web Services accounts to copy or restore a manual DB cluster snapshot, set this list to include one or more Amazon Web Services account identifiers, or all to remove authorization for any Amazon Web Services account to copy or restore the DB cluster snapshot. If you specify all, an Amazon Web Services account whose account ID is explicitly added to the restore attribute can still copy or restore a manual DB cluster snapshot.
sourcepub fn set_values_to_remove(self, input: Option<Vec<String>>) -> Self
pub fn set_values_to_remove(self, input: Option<Vec<String>>) -> Self
A list of DB cluster snapshot attributes to remove from the attribute specified by AttributeName.
To remove authorization for other Amazon Web Services accounts to copy or restore a manual DB cluster snapshot, set this list to include one or more Amazon Web Services account identifiers, or all to remove authorization for any Amazon Web Services account to copy or restore the DB cluster snapshot. If you specify all, an Amazon Web Services account whose account ID is explicitly added to the restore attribute can still copy or restore a manual DB cluster snapshot.
sourcepub fn get_values_to_remove(&self) -> &Option<Vec<String>>
pub fn get_values_to_remove(&self) -> &Option<Vec<String>>
A list of DB cluster snapshot attributes to remove from the attribute specified by AttributeName.
To remove authorization for other Amazon Web Services accounts to copy or restore a manual DB cluster snapshot, set this list to include one or more Amazon Web Services account identifiers, or all to remove authorization for any Amazon Web Services account to copy or restore the DB cluster snapshot. If you specify all, an Amazon Web Services account whose account ID is explicitly added to the restore attribute can still copy or restore a manual DB cluster snapshot.
sourcepub fn build(self) -> Result<ModifyDbClusterSnapshotAttributeInput, BuildError>
pub fn build(self) -> Result<ModifyDbClusterSnapshotAttributeInput, BuildError>
Consumes the builder and constructs a ModifyDbClusterSnapshotAttributeInput.
source§impl ModifyDbClusterSnapshotAttributeInputBuilder
impl ModifyDbClusterSnapshotAttributeInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ModifyDbClusterSnapshotAttributeOutput, SdkError<ModifyDBClusterSnapshotAttributeError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ModifyDbClusterSnapshotAttributeOutput, SdkError<ModifyDBClusterSnapshotAttributeError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ModifyDbClusterSnapshotAttributeInputBuilder
impl Clone for ModifyDbClusterSnapshotAttributeInputBuilder
source§fn clone(&self) -> ModifyDbClusterSnapshotAttributeInputBuilder
fn clone(&self) -> ModifyDbClusterSnapshotAttributeInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ModifyDbClusterSnapshotAttributeInputBuilder
impl Default for ModifyDbClusterSnapshotAttributeInputBuilder
source§fn default() -> ModifyDbClusterSnapshotAttributeInputBuilder
fn default() -> ModifyDbClusterSnapshotAttributeInputBuilder
source§impl PartialEq for ModifyDbClusterSnapshotAttributeInputBuilder
impl PartialEq for ModifyDbClusterSnapshotAttributeInputBuilder
source§fn eq(&self, other: &ModifyDbClusterSnapshotAttributeInputBuilder) -> bool
fn eq(&self, other: &ModifyDbClusterSnapshotAttributeInputBuilder) -> bool
self and other values to be equal, and is used
by ==.