Struct aws_sdk_codecommit::operation::update_repository_encryption_key::builders::UpdateRepositoryEncryptionKeyInputBuilder
source · #[non_exhaustive]pub struct UpdateRepositoryEncryptionKeyInputBuilder { /* private fields */ }Expand description
A builder for UpdateRepositoryEncryptionKeyInput.
Implementations§
source§impl UpdateRepositoryEncryptionKeyInputBuilder
impl UpdateRepositoryEncryptionKeyInputBuilder
sourcepub fn repository_name(self, input: impl Into<String>) -> Self
pub fn repository_name(self, input: impl Into<String>) -> Self
The name of the repository for which you want to update the KMS encryption key used to encrypt and decrypt the repository.
This field is required.sourcepub fn set_repository_name(self, input: Option<String>) -> Self
pub fn set_repository_name(self, input: Option<String>) -> Self
The name of the repository for which you want to update the KMS encryption key used to encrypt and decrypt the repository.
sourcepub fn get_repository_name(&self) -> &Option<String>
pub fn get_repository_name(&self) -> &Option<String>
The name of the repository for which you want to update the KMS encryption key used to encrypt and decrypt the repository.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to programmatically retrieve a key ID. For more information about acceptable values for keyID, see KeyId in the Decrypt API description in the Key Management Service API Reference.
This field is required.sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to programmatically retrieve a key ID. For more information about acceptable values for keyID, see KeyId in the Decrypt API description in the Key Management Service API Reference.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to programmatically retrieve a key ID. For more information about acceptable values for keyID, see KeyId in the Decrypt API description in the Key Management Service API Reference.
sourcepub fn build(self) -> Result<UpdateRepositoryEncryptionKeyInput, BuildError>
pub fn build(self) -> Result<UpdateRepositoryEncryptionKeyInput, BuildError>
Consumes the builder and constructs a UpdateRepositoryEncryptionKeyInput.
source§impl UpdateRepositoryEncryptionKeyInputBuilder
impl UpdateRepositoryEncryptionKeyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateRepositoryEncryptionKeyOutput, SdkError<UpdateRepositoryEncryptionKeyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateRepositoryEncryptionKeyOutput, SdkError<UpdateRepositoryEncryptionKeyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateRepositoryEncryptionKeyInputBuilder
impl Clone for UpdateRepositoryEncryptionKeyInputBuilder
source§fn clone(&self) -> UpdateRepositoryEncryptionKeyInputBuilder
fn clone(&self) -> UpdateRepositoryEncryptionKeyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for UpdateRepositoryEncryptionKeyInputBuilder
impl Default for UpdateRepositoryEncryptionKeyInputBuilder
source§fn default() -> UpdateRepositoryEncryptionKeyInputBuilder
fn default() -> UpdateRepositoryEncryptionKeyInputBuilder
source§impl PartialEq for UpdateRepositoryEncryptionKeyInputBuilder
impl PartialEq for UpdateRepositoryEncryptionKeyInputBuilder
source§fn eq(&self, other: &UpdateRepositoryEncryptionKeyInputBuilder) -> bool
fn eq(&self, other: &UpdateRepositoryEncryptionKeyInputBuilder) -> bool
self and other values to be equal, and is used
by ==.