Struct aws_sdk_codegurureviewer::operation::associate_repository::builders::AssociateRepositoryFluentBuilder
source · pub struct AssociateRepositoryFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to AssociateRepository
.
Use to associate an Amazon Web Services CodeCommit repository or a repository managed by Amazon Web Services CodeStar Connections with Amazon CodeGuru Reviewer. When you associate a repository, CodeGuru Reviewer reviews source code changes in the repository's pull requests and provides automatic recommendations. You can view recommendations using the CodeGuru Reviewer console. For more information, see Recommendations in Amazon CodeGuru Reviewer in the Amazon CodeGuru Reviewer User Guide.
If you associate a CodeCommit or S3 repository, it must be in the same Amazon Web Services Region and Amazon Web Services account where its CodeGuru Reviewer code reviews are configured.
Bitbucket and GitHub Enterprise Server repositories are managed by Amazon Web Services CodeStar Connections to connect to CodeGuru Reviewer. For more information, see Associate a repository in the Amazon CodeGuru Reviewer User Guide.
You cannot use the CodeGuru Reviewer SDK or the Amazon Web Services CLI to associate a GitHub repository with Amazon CodeGuru Reviewer. To associate a GitHub repository, use the console. For more information, see Getting started with CodeGuru Reviewer in the CodeGuru Reviewer User Guide.
Implementations§
source§impl AssociateRepositoryFluentBuilder
impl AssociateRepositoryFluentBuilder
sourcepub fn as_input(&self) -> &AssociateRepositoryInputBuilder
pub fn as_input(&self) -> &AssociateRepositoryInputBuilder
Access the AssociateRepository as a reference.
sourcepub async fn send(
self,
) -> Result<AssociateRepositoryOutput, SdkError<AssociateRepositoryError, HttpResponse>>
pub async fn send( self, ) -> Result<AssociateRepositoryOutput, SdkError<AssociateRepositoryError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<AssociateRepositoryOutput, AssociateRepositoryError, Self>
pub fn customize( self, ) -> CustomizableOperation<AssociateRepositoryOutput, AssociateRepositoryError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn repository(self, input: Repository) -> Self
pub fn repository(self, input: Repository) -> Self
The repository to associate.
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.
Trait Implementations§
source§impl Clone for AssociateRepositoryFluentBuilder
impl Clone for AssociateRepositoryFluentBuilder
source§fn clone(&self) -> AssociateRepositoryFluentBuilder
fn clone(&self) -> AssociateRepositoryFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for AssociateRepositoryFluentBuilder
impl !RefUnwindSafe for AssociateRepositoryFluentBuilder
impl Send for AssociateRepositoryFluentBuilder
impl Sync for AssociateRepositoryFluentBuilder
impl Unpin for AssociateRepositoryFluentBuilder
impl !UnwindSafe for AssociateRepositoryFluentBuilder
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