/* * 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.codecommit.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Returns information about comments on the comparison between two commits. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CommentsForComparedCommit implements Serializable, Cloneable, StructuredPojo { /** ** The name of the repository that contains the compared commits. *
*/ private String repositoryName; /** ** The full commit ID of the commit used to establish the before of the comparison. *
*/ private String beforeCommitId; /** ** The full commit ID of the commit used to establish the after of the comparison. *
*/ private String afterCommitId; /** ** The full blob ID of the commit used to establish the before of the comparison. *
*/ private String beforeBlobId; /** ** The full blob ID of the commit used to establish the after of the comparison. *
*/ private String afterBlobId; /** ** Location information about the comment on the comparison, including the file name, line number, and whether the * version of the file where the comment was made is BEFORE or AFTER. *
*/ private Location location; /** ** An array of comment objects. Each comment object contains information about a comment on the comparison between * commits. *
*/ private java.util.List* The name of the repository that contains the compared commits. *
* * @param repositoryName * The name of the repository that contains the compared commits. */ public void setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; } /** ** The name of the repository that contains the compared commits. *
* * @return The name of the repository that contains the compared commits. */ public String getRepositoryName() { return this.repositoryName; } /** ** The name of the repository that contains the compared commits. *
* * @param repositoryName * The name of the repository that contains the compared commits. * @return Returns a reference to this object so that method calls can be chained together. */ public CommentsForComparedCommit withRepositoryName(String repositoryName) { setRepositoryName(repositoryName); return this; } /** ** The full commit ID of the commit used to establish the before of the comparison. *
* * @param beforeCommitId * The full commit ID of the commit used to establish the before of the comparison. */ public void setBeforeCommitId(String beforeCommitId) { this.beforeCommitId = beforeCommitId; } /** ** The full commit ID of the commit used to establish the before of the comparison. *
* * @return The full commit ID of the commit used to establish the before of the comparison. */ public String getBeforeCommitId() { return this.beforeCommitId; } /** ** The full commit ID of the commit used to establish the before of the comparison. *
* * @param beforeCommitId * The full commit ID of the commit used to establish the before of the comparison. * @return Returns a reference to this object so that method calls can be chained together. */ public CommentsForComparedCommit withBeforeCommitId(String beforeCommitId) { setBeforeCommitId(beforeCommitId); return this; } /** ** The full commit ID of the commit used to establish the after of the comparison. *
* * @param afterCommitId * The full commit ID of the commit used to establish the after of the comparison. */ public void setAfterCommitId(String afterCommitId) { this.afterCommitId = afterCommitId; } /** ** The full commit ID of the commit used to establish the after of the comparison. *
* * @return The full commit ID of the commit used to establish the after of the comparison. */ public String getAfterCommitId() { return this.afterCommitId; } /** ** The full commit ID of the commit used to establish the after of the comparison. *
* * @param afterCommitId * The full commit ID of the commit used to establish the after of the comparison. * @return Returns a reference to this object so that method calls can be chained together. */ public CommentsForComparedCommit withAfterCommitId(String afterCommitId) { setAfterCommitId(afterCommitId); return this; } /** ** The full blob ID of the commit used to establish the before of the comparison. *
* * @param beforeBlobId * The full blob ID of the commit used to establish the before of the comparison. */ public void setBeforeBlobId(String beforeBlobId) { this.beforeBlobId = beforeBlobId; } /** ** The full blob ID of the commit used to establish the before of the comparison. *
* * @return The full blob ID of the commit used to establish the before of the comparison. */ public String getBeforeBlobId() { return this.beforeBlobId; } /** ** The full blob ID of the commit used to establish the before of the comparison. *
* * @param beforeBlobId * The full blob ID of the commit used to establish the before of the comparison. * @return Returns a reference to this object so that method calls can be chained together. */ public CommentsForComparedCommit withBeforeBlobId(String beforeBlobId) { setBeforeBlobId(beforeBlobId); return this; } /** ** The full blob ID of the commit used to establish the after of the comparison. *
* * @param afterBlobId * The full blob ID of the commit used to establish the after of the comparison. */ public void setAfterBlobId(String afterBlobId) { this.afterBlobId = afterBlobId; } /** ** The full blob ID of the commit used to establish the after of the comparison. *
* * @return The full blob ID of the commit used to establish the after of the comparison. */ public String getAfterBlobId() { return this.afterBlobId; } /** ** The full blob ID of the commit used to establish the after of the comparison. *
* * @param afterBlobId * The full blob ID of the commit used to establish the after of the comparison. * @return Returns a reference to this object so that method calls can be chained together. */ public CommentsForComparedCommit withAfterBlobId(String afterBlobId) { setAfterBlobId(afterBlobId); return this; } /** ** Location information about the comment on the comparison, including the file name, line number, and whether the * version of the file where the comment was made is BEFORE or AFTER. *
* * @param location * Location information about the comment on the comparison, including the file name, line number, and * whether the version of the file where the comment was made is BEFORE or AFTER. */ public void setLocation(Location location) { this.location = location; } /** ** Location information about the comment on the comparison, including the file name, line number, and whether the * version of the file where the comment was made is BEFORE or AFTER. *
* * @return Location information about the comment on the comparison, including the file name, line number, and * whether the version of the file where the comment was made is BEFORE or AFTER. */ public Location getLocation() { return this.location; } /** ** Location information about the comment on the comparison, including the file name, line number, and whether the * version of the file where the comment was made is BEFORE or AFTER. *
* * @param location * Location information about the comment on the comparison, including the file name, line number, and * whether the version of the file where the comment was made is BEFORE or AFTER. * @return Returns a reference to this object so that method calls can be chained together. */ public CommentsForComparedCommit withLocation(Location location) { setLocation(location); return this; } /** ** An array of comment objects. Each comment object contains information about a comment on the comparison between * commits. *
* * @return An array of comment objects. Each comment object contains information about a comment on the comparison * between commits. */ public java.util.List* An array of comment objects. Each comment object contains information about a comment on the comparison between * commits. *
* * @param comments * An array of comment objects. Each comment object contains information about a comment on the comparison * between commits. */ public void setComments(java.util.Collection* An array of comment objects. Each comment object contains information about a comment on the comparison between * commits. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setComments(java.util.Collection)} or {@link #withComments(java.util.Collection)} if you want to override * the existing values. *
* * @param comments * An array of comment objects. Each comment object contains information about a comment on the comparison * between commits. * @return Returns a reference to this object so that method calls can be chained together. */ public CommentsForComparedCommit withComments(Comment... comments) { if (this.comments == null) { setComments(new java.util.ArrayList* An array of comment objects. Each comment object contains information about a comment on the comparison between * commits. *
* * @param comments * An array of comment objects. Each comment object contains information about a comment on the comparison * between commits. * @return Returns a reference to this object so that method calls can be chained together. */ public CommentsForComparedCommit withComments(java.util.Collection