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 ==
.impl StructuralPartialEq for UpdateRepositoryEncryptionKeyInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateRepositoryEncryptionKeyInputBuilder
impl RefUnwindSafe for UpdateRepositoryEncryptionKeyInputBuilder
impl Send for UpdateRepositoryEncryptionKeyInputBuilder
impl Sync for UpdateRepositoryEncryptionKeyInputBuilder
impl Unpin for UpdateRepositoryEncryptionKeyInputBuilder
impl UnwindSafe for UpdateRepositoryEncryptionKeyInputBuilder
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> 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 more