Interface AssociateRepositoryRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CodeGuruReviewerRequest.Builder
,CopyableBuilder<AssociateRepositoryRequest.Builder,
,AssociateRepositoryRequest> SdkBuilder<AssociateRepositoryRequest.Builder,
,AssociateRepositoryRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
AssociateRepositoryRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken
(String clientRequestToken) Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries.kmsKeyDetails
(Consumer<KMSKeyDetails.Builder> kmsKeyDetails) AKMSKeyDetails
object that contains:kmsKeyDetails
(KMSKeyDetails kmsKeyDetails) AKMSKeyDetails
object that contains:overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.repository
(Consumer<Repository.Builder> repository) The repository to associate.repository
(Repository repository) The repository to associate.An array of key-value pairs used to tag an associated repository.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.codegurureviewer.model.CodeGuruReviewerRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
repository
The repository to associate.
- Parameters:
repository
- The repository to associate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repository
The repository to associate.
This is a convenience method that creates an instance of theRepository.Builder
avoiding the need to create one manually viaRepository.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torepository(Repository)
.- Parameters:
repository
- a consumer that will call methods onRepository.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientRequestToken
Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries.
- Parameters:
clientRequestToken
- Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
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.
- Parameters:
kmsKeyDetails
- AKMSKeyDetails
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
kmsKeyDetails
default AssociateRepositoryRequest.Builder kmsKeyDetails(Consumer<KMSKeyDetails.Builder> 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.
KMSKeyDetails.Builder
avoiding the need to create one manually viaKMSKeyDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tokmsKeyDetails(KMSKeyDetails)
.- Parameters:
kmsKeyDetails
- a consumer that will call methods onKMSKeyDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
overrideConfiguration
AssociateRepositoryRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
AssociateRepositoryRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-