/* * 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 a specific comment. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Comment implements Serializable, Cloneable, StructuredPojo { /** ** The system-generated comment ID. *
*/ private String commentId; /** ** The content of the comment. *
*/ private String content; /** ** The ID of the comment for which this comment is a reply, if any. *
*/ private String inReplyTo; /** ** The date and time the comment was created, in timestamp format. *
*/ private java.util.Date creationDate; /** ** The date and time the comment was most recently modified, in timestamp format. *
*/ private java.util.Date lastModifiedDate; /** ** The Amazon Resource Name (ARN) of the person who posted the comment. *
*/ private String authorArn; /** ** A Boolean value indicating whether the comment has been deleted. *
*/ private Boolean deleted; /** ** A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be * repeated with a changed parameter. If a request is received with the same parameters and a token is included, the * request returns information about the initial request that used that token. *
*/ private String clientRequestToken; /** ** The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the call to * the API. *
*/ private java.util.List* A string to integer map that represents the number of individual users who have responded to a comment with the * specified reactions. *
*/ private java.util.Map* The system-generated comment ID. *
* * @param commentId * The system-generated comment ID. */ public void setCommentId(String commentId) { this.commentId = commentId; } /** ** The system-generated comment ID. *
* * @return The system-generated comment ID. */ public String getCommentId() { return this.commentId; } /** ** The system-generated comment ID. *
* * @param commentId * The system-generated comment ID. * @return Returns a reference to this object so that method calls can be chained together. */ public Comment withCommentId(String commentId) { setCommentId(commentId); return this; } /** ** The content of the comment. *
* * @param content * The content of the comment. */ public void setContent(String content) { this.content = content; } /** ** The content of the comment. *
* * @return The content of the comment. */ public String getContent() { return this.content; } /** ** The content of the comment. *
* * @param content * The content of the comment. * @return Returns a reference to this object so that method calls can be chained together. */ public Comment withContent(String content) { setContent(content); return this; } /** ** The ID of the comment for which this comment is a reply, if any. *
* * @param inReplyTo * The ID of the comment for which this comment is a reply, if any. */ public void setInReplyTo(String inReplyTo) { this.inReplyTo = inReplyTo; } /** ** The ID of the comment for which this comment is a reply, if any. *
* * @return The ID of the comment for which this comment is a reply, if any. */ public String getInReplyTo() { return this.inReplyTo; } /** ** The ID of the comment for which this comment is a reply, if any. *
* * @param inReplyTo * The ID of the comment for which this comment is a reply, if any. * @return Returns a reference to this object so that method calls can be chained together. */ public Comment withInReplyTo(String inReplyTo) { setInReplyTo(inReplyTo); return this; } /** ** The date and time the comment was created, in timestamp format. *
* * @param creationDate * The date and time the comment was created, in timestamp format. */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** ** The date and time the comment was created, in timestamp format. *
* * @return The date and time the comment was created, in timestamp format. */ public java.util.Date getCreationDate() { return this.creationDate; } /** ** The date and time the comment was created, in timestamp format. *
* * @param creationDate * The date and time the comment was created, in timestamp format. * @return Returns a reference to this object so that method calls can be chained together. */ public Comment withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); return this; } /** ** The date and time the comment was most recently modified, in timestamp format. *
* * @param lastModifiedDate * The date and time the comment was most recently modified, in timestamp format. */ public void setLastModifiedDate(java.util.Date lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } /** ** The date and time the comment was most recently modified, in timestamp format. *
* * @return The date and time the comment was most recently modified, in timestamp format. */ public java.util.Date getLastModifiedDate() { return this.lastModifiedDate; } /** ** The date and time the comment was most recently modified, in timestamp format. *
* * @param lastModifiedDate * The date and time the comment was most recently modified, in timestamp format. * @return Returns a reference to this object so that method calls can be chained together. */ public Comment withLastModifiedDate(java.util.Date lastModifiedDate) { setLastModifiedDate(lastModifiedDate); return this; } /** ** The Amazon Resource Name (ARN) of the person who posted the comment. *
* * @param authorArn * The Amazon Resource Name (ARN) of the person who posted the comment. */ public void setAuthorArn(String authorArn) { this.authorArn = authorArn; } /** ** The Amazon Resource Name (ARN) of the person who posted the comment. *
* * @return The Amazon Resource Name (ARN) of the person who posted the comment. */ public String getAuthorArn() { return this.authorArn; } /** ** The Amazon Resource Name (ARN) of the person who posted the comment. *
* * @param authorArn * The Amazon Resource Name (ARN) of the person who posted the comment. * @return Returns a reference to this object so that method calls can be chained together. */ public Comment withAuthorArn(String authorArn) { setAuthorArn(authorArn); return this; } /** ** A Boolean value indicating whether the comment has been deleted. *
* * @param deleted * A Boolean value indicating whether the comment has been deleted. */ public void setDeleted(Boolean deleted) { this.deleted = deleted; } /** ** A Boolean value indicating whether the comment has been deleted. *
* * @return A Boolean value indicating whether the comment has been deleted. */ public Boolean getDeleted() { return this.deleted; } /** ** A Boolean value indicating whether the comment has been deleted. *
* * @param deleted * A Boolean value indicating whether the comment has been deleted. * @return Returns a reference to this object so that method calls can be chained together. */ public Comment withDeleted(Boolean deleted) { setDeleted(deleted); return this; } /** ** A Boolean value indicating whether the comment has been deleted. *
* * @return A Boolean value indicating whether the comment has been deleted. */ public Boolean isDeleted() { return this.deleted; } /** ** A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be * repeated with a changed parameter. If a request is received with the same parameters and a token is included, the * request returns information about the initial request that used that token. *
* * @param clientRequestToken * A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot * be repeated with a changed parameter. If a request is received with the same parameters and a token is * included, the request returns information about the initial request that used that token. */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** ** A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be * repeated with a changed parameter. If a request is received with the same parameters and a token is included, the * request returns information about the initial request that used that token. *
* * @return A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot * be repeated with a changed parameter. If a request is received with the same parameters and a token is * included, the request returns information about the initial request that used that token. */ public String getClientRequestToken() { return this.clientRequestToken; } /** ** A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be * repeated with a changed parameter. If a request is received with the same parameters and a token is included, the * request returns information about the initial request that used that token. *
* * @param clientRequestToken * A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot * be repeated with a changed parameter. If a request is received with the same parameters and a token is * included, the request returns information about the initial request that used that token. * @return Returns a reference to this object so that method calls can be chained together. */ public Comment withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** ** The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the call to * the API. *
* * @return The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the * call to the API. */ public java.util.List* The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the call to * the API. *
* * @param callerReactions * The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the * call to the API. */ public void setCallerReactions(java.util.Collection* The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the call to * the API. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCallerReactions(java.util.Collection)} or {@link #withCallerReactions(java.util.Collection)} if you * want to override the existing values. *
* * @param callerReactions * The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the * call to the API. * @return Returns a reference to this object so that method calls can be chained together. */ public Comment withCallerReactions(String... callerReactions) { if (this.callerReactions == null) { setCallerReactions(new java.util.ArrayList* The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the call to * the API. *
* * @param callerReactions * The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the * call to the API. * @return Returns a reference to this object so that method calls can be chained together. */ public Comment withCallerReactions(java.util.Collection* A string to integer map that represents the number of individual users who have responded to a comment with the * specified reactions. *
* * @return A string to integer map that represents the number of individual users who have responded to a comment * with the specified reactions. */ public java.util.Map* A string to integer map that represents the number of individual users who have responded to a comment with the * specified reactions. *
* * @param reactionCounts * A string to integer map that represents the number of individual users who have responded to a comment * with the specified reactions. */ public void setReactionCounts(java.util.Map* A string to integer map that represents the number of individual users who have responded to a comment with the * specified reactions. *
* * @param reactionCounts * A string to integer map that represents the number of individual users who have responded to a comment * with the specified reactions. * @return Returns a reference to this object so that method calls can be chained together. */ public Comment withReactionCounts(java.util.Map