All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.codegurureviewer.model.AssociateRepositoryRequest Maven / Gradle / Ivy

/*
 * Copyright 2015-2020 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; /** *

* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *

*

* If you want to add a new repository association, this parameter specifies a unique identifier for the new * repository association that helps ensure idempotency. *

*

* If you use the AWS CLI or one of the AWS SDK to call this operation, then you can leave this parameter empty. The * CLI or SDK generates a random UUID for you and includes that in the request. If you don't use the SDK and instead * generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a ClientRequestToken * yourself for new versions and include that value in the request. *

*

* You typically only need to interact with this value if you implement your own retry logic and want to ensure that * a given repository association is not created twice. We recommend that you generate a UUID-type value to ensure * uniqueness within the specified repository association. *

*

* Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations * if there are failures and retries. *

*/ private String clientRequestToken; /** *

* 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; } /** *

* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *

*

* If you want to add a new repository association, this parameter specifies a unique identifier for the new * repository association that helps ensure idempotency. *

*

* If you use the AWS CLI or one of the AWS SDK to call this operation, then you can leave this parameter empty. The * CLI or SDK generates a random UUID for you and includes that in the request. If you don't use the SDK and instead * generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a ClientRequestToken * yourself for new versions and include that value in the request. *

*

* You typically only need to interact with this value if you implement your own retry logic and want to ensure that * a given repository association is not created twice. We recommend that you generate a UUID-type value to ensure * uniqueness within the specified repository association. *

*

* Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations * if there are failures and retries. *

* * @param clientRequestToken * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

*

* If you want to add a new repository association, this parameter specifies a unique identifier for the new * repository association that helps ensure idempotency. *

*

* If you use the AWS CLI or one of the AWS SDK to call this operation, then you can leave this parameter * empty. The CLI or SDK generates a random UUID for you and includes that in the request. If you don't use * the SDK and instead generate a raw HTTP request to the Secrets Manager service endpoint, then you must * generate a ClientRequestToken yourself for new versions and include that value in the request. *

*

* You typically only need to interact with this value if you implement your own retry logic and want to * ensure that a given repository association is not created twice. We recommend that you generate a * UUID-type value to ensure uniqueness within the specified repository association. *

*

* 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; } /** *

* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *

*

* If you want to add a new repository association, this parameter specifies a unique identifier for the new * repository association that helps ensure idempotency. *

*

* If you use the AWS CLI or one of the AWS SDK to call this operation, then you can leave this parameter empty. The * CLI or SDK generates a random UUID for you and includes that in the request. If you don't use the SDK and instead * generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a ClientRequestToken * yourself for new versions and include that value in the request. *

*

* You typically only need to interact with this value if you implement your own retry logic and want to ensure that * a given repository association is not created twice. We recommend that you generate a UUID-type value to ensure * uniqueness within the specified repository association. *

*

* Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations * if there are failures and retries. *

* * @return Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

*

* If you want to add a new repository association, this parameter specifies a unique identifier for the new * repository association that helps ensure idempotency. *

*

* If you use the AWS CLI or one of the AWS SDK to call this operation, then you can leave this parameter * empty. The CLI or SDK generates a random UUID for you and includes that in the request. If you don't use * the SDK and instead generate a raw HTTP request to the Secrets Manager service endpoint, then you must * generate a ClientRequestToken yourself for new versions and include that value in the request. *

*

* You typically only need to interact with this value if you implement your own retry logic and want to * ensure that a given repository association is not created twice. We recommend that you generate a * UUID-type value to ensure uniqueness within the specified repository association. *

*

* 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; } /** *

* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *

*

* If you want to add a new repository association, this parameter specifies a unique identifier for the new * repository association that helps ensure idempotency. *

*

* If you use the AWS CLI or one of the AWS SDK to call this operation, then you can leave this parameter empty. The * CLI or SDK generates a random UUID for you and includes that in the request. If you don't use the SDK and instead * generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a ClientRequestToken * yourself for new versions and include that value in the request. *

*

* You typically only need to interact with this value if you implement your own retry logic and want to ensure that * a given repository association is not created twice. We recommend that you generate a UUID-type value to ensure * uniqueness within the specified repository association. *

*

* Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations * if there are failures and retries. *

* * @param clientRequestToken * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

*

* If you want to add a new repository association, this parameter specifies a unique identifier for the new * repository association that helps ensure idempotency. *

*

* If you use the AWS CLI or one of the AWS SDK to call this operation, then you can leave this parameter * empty. The CLI or SDK generates a random UUID for you and includes that in the request. If you don't use * the SDK and instead generate a raw HTTP request to the Secrets Manager service endpoint, then you must * generate a ClientRequestToken yourself for new versions and include that value in the request. *

*

* You typically only need to interact with this value if you implement your own retry logic and want to * ensure that a given repository association is not created twice. We recommend that you generate a * UUID-type value to ensure uniqueness within the specified repository association. *

*

* 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; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getRepository() != null) sb.append("Repository: ").append(getRepository()).append(","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AssociateRepositoryRequest == false) return false; AssociateRepositoryRequest other = (AssociateRepositoryRequest) obj; if (other.getRepository() == null ^ this.getRepository() == null) return false; if (other.getRepository() != null && other.getRepository().equals(this.getRepository()) == false) return false; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRepository() == null) ? 0 : getRepository().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); return hashCode; } @Override public AssociateRepositoryRequest clone() { return (AssociateRepositoryRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy