Struct aws_sdk_backup::operation::put_backup_vault_access_policy::builders::PutBackupVaultAccessPolicyInputBuilder
source · #[non_exhaustive]pub struct PutBackupVaultAccessPolicyInputBuilder { /* private fields */ }
Expand description
A builder for PutBackupVaultAccessPolicyInput
.
Implementations§
source§impl PutBackupVaultAccessPolicyInputBuilder
impl PutBackupVaultAccessPolicyInputBuilder
sourcepub fn backup_vault_name(self, input: impl Into<String>) -> Self
pub fn backup_vault_name(self, input: impl Into<String>) -> Self
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
This field is required.sourcepub fn set_backup_vault_name(self, input: Option<String>) -> Self
pub fn set_backup_vault_name(self, input: Option<String>) -> Self
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
sourcepub fn get_backup_vault_name(&self) -> &Option<String>
pub fn get_backup_vault_name(&self) -> &Option<String>
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
sourcepub fn policy(self, input: impl Into<String>) -> Self
pub fn policy(self, input: impl Into<String>) -> Self
The backup vault access policy document in JSON format.
sourcepub fn set_policy(self, input: Option<String>) -> Self
pub fn set_policy(self, input: Option<String>) -> Self
The backup vault access policy document in JSON format.
sourcepub fn get_policy(&self) -> &Option<String>
pub fn get_policy(&self) -> &Option<String>
The backup vault access policy document in JSON format.
sourcepub fn build(self) -> Result<PutBackupVaultAccessPolicyInput, BuildError>
pub fn build(self) -> Result<PutBackupVaultAccessPolicyInput, BuildError>
Consumes the builder and constructs a PutBackupVaultAccessPolicyInput
.
source§impl PutBackupVaultAccessPolicyInputBuilder
impl PutBackupVaultAccessPolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutBackupVaultAccessPolicyOutput, SdkError<PutBackupVaultAccessPolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutBackupVaultAccessPolicyOutput, SdkError<PutBackupVaultAccessPolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutBackupVaultAccessPolicyInputBuilder
impl Clone for PutBackupVaultAccessPolicyInputBuilder
source§fn clone(&self) -> PutBackupVaultAccessPolicyInputBuilder
fn clone(&self) -> PutBackupVaultAccessPolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PutBackupVaultAccessPolicyInputBuilder
impl Default for PutBackupVaultAccessPolicyInputBuilder
source§fn default() -> PutBackupVaultAccessPolicyInputBuilder
fn default() -> PutBackupVaultAccessPolicyInputBuilder
source§impl PartialEq for PutBackupVaultAccessPolicyInputBuilder
impl PartialEq for PutBackupVaultAccessPolicyInputBuilder
source§fn eq(&self, other: &PutBackupVaultAccessPolicyInputBuilder) -> bool
fn eq(&self, other: &PutBackupVaultAccessPolicyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.