Struct aws_sdk_codegurureviewer::operation::associate_repository::builders::AssociateRepositoryInputBuilder
source · #[non_exhaustive]pub struct AssociateRepositoryInputBuilder { /* private fields */ }
Expand description
A builder for AssociateRepositoryInput
.
Implementations§
source§impl AssociateRepositoryInputBuilder
impl AssociateRepositoryInputBuilder
sourcepub fn repository(self, input: Repository) -> Self
pub fn repository(self, input: Repository) -> Self
The repository to associate.
This field is required.sourcepub fn set_repository(self, input: Option<Repository>) -> Self
pub fn set_repository(self, input: Option<Repository>) -> Self
The repository to associate.
sourcepub fn get_repository(&self) -> &Option<Repository>
pub fn get_repository(&self) -> &Option<Repository>
The repository to associate.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:
-
A tag key (for example,
CostCenter
,Environment
,Project
, orSecret
). Tag keys are case sensitive. -
An optional field known as a tag value (for example,
111122223333
,Production
, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.
An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:
-
A tag key (for example,
CostCenter
,Environment
,Project
, orSecret
). Tag keys are case sensitive. -
An optional field known as a tag value (for example,
111122223333
,Production
, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.
An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:
-
A tag key (for example,
CostCenter
,Environment
,Project
, orSecret
). Tag keys are case sensitive. -
An optional field known as a tag value (for example,
111122223333
,Production
, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.
sourcepub fn kms_key_details(self, input: KmsKeyDetails) -> Self
pub fn kms_key_details(self, input: KmsKeyDetails) -> Self
A KMSKeyDetails
object that contains:
-
The encryption option for this repository association. It is either owned by Amazon Web Services Key Management Service (KMS) (
AWS_OWNED_CMK
) or customer managed (CUSTOMER_MANAGED_CMK
). -
The ID of the Amazon Web Services KMS key that is associated with this repository association.
sourcepub fn set_kms_key_details(self, input: Option<KmsKeyDetails>) -> Self
pub fn set_kms_key_details(self, input: Option<KmsKeyDetails>) -> Self
A KMSKeyDetails
object that contains:
-
The encryption option for this repository association. It is either owned by Amazon Web Services Key Management Service (KMS) (
AWS_OWNED_CMK
) or customer managed (CUSTOMER_MANAGED_CMK
). -
The ID of the Amazon Web Services KMS key that is associated with this repository association.
sourcepub fn get_kms_key_details(&self) -> &Option<KmsKeyDetails>
pub fn get_kms_key_details(&self) -> &Option<KmsKeyDetails>
A KMSKeyDetails
object that contains:
-
The encryption option for this repository association. It is either owned by Amazon Web Services Key Management Service (KMS) (
AWS_OWNED_CMK
) or customer managed (CUSTOMER_MANAGED_CMK
). -
The ID of the Amazon Web Services KMS key that is associated with this repository association.
sourcepub fn build(self) -> Result<AssociateRepositoryInput, BuildError>
pub fn build(self) -> Result<AssociateRepositoryInput, BuildError>
Consumes the builder and constructs a AssociateRepositoryInput
.
source§impl AssociateRepositoryInputBuilder
impl AssociateRepositoryInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<AssociateRepositoryOutput, SdkError<AssociateRepositoryError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<AssociateRepositoryOutput, SdkError<AssociateRepositoryError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for AssociateRepositoryInputBuilder
impl Clone for AssociateRepositoryInputBuilder
source§fn clone(&self) -> AssociateRepositoryInputBuilder
fn clone(&self) -> AssociateRepositoryInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AssociateRepositoryInputBuilder
impl Default for AssociateRepositoryInputBuilder
source§fn default() -> AssociateRepositoryInputBuilder
fn default() -> AssociateRepositoryInputBuilder
source§impl PartialEq for AssociateRepositoryInputBuilder
impl PartialEq for AssociateRepositoryInputBuilder
source§fn eq(&self, other: &AssociateRepositoryInputBuilder) -> bool
fn eq(&self, other: &AssociateRepositoryInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AssociateRepositoryInputBuilder
Auto Trait Implementations§
impl Freeze for AssociateRepositoryInputBuilder
impl RefUnwindSafe for AssociateRepositoryInputBuilder
impl Send for AssociateRepositoryInputBuilder
impl Sync for AssociateRepositoryInputBuilder
impl Unpin for AssociateRepositoryInputBuilder
impl UnwindSafe for AssociateRepositoryInputBuilder
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