/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.codegurureviewer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AssociateRepositoryRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The repository to associate. *
*/ private Repository repository; /** ** Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations * if there are failures and retries. *
*/ private String clientRequestToken; /** ** 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
, or
* Secret
). 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.
*
* 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. *
** The repository to associate. *
* * @param repository * The repository to associate. */ public void setRepository(Repository repository) { this.repository = repository; } /** ** The repository to associate. *
* * @return The repository to associate. */ public Repository getRepository() { return this.repository; } /** ** The repository to associate. *
* * @param repository * The repository to associate. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateRepositoryRequest withRepository(Repository repository) { setRepository(repository); return this; } /** ** Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations * if there are failures and retries. *
* * @param clientRequestToken * Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository * associations if there are failures and retries. */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** ** Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations * if there are failures and retries. *
* * @return Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository * associations if there are failures and retries. */ public String getClientRequestToken() { return this.clientRequestToken; } /** ** Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations * if there are failures and retries. *
* * @param clientRequestToken * Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository * associations if there are failures and retries. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateRepositoryRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** ** 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
, or
* Secret
). 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.
*
* A tag key (for example, CostCenter
, Environment
, Project
,
* or Secret
). 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
, or
* Secret
). 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.
*
* A tag key (for example, CostCenter
, Environment
, Project
, or
* Secret
). 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
, or
* Secret
). 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.
*
* A tag key (for example, CostCenter
, Environment
, Project
, or
* Secret
). 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.
*
* 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
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. *
*
* 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
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. *
*
* 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
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. *
*