/* * 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: *

* */ private java.util.Map tags; /** *

* A KMSKeyDetails object that contains: *

* */ private KMSKeyDetails kMSKeyDetails; /** *

* 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: *

* * * @return An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with * two parts:

*