@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ControlComment extends Object implements Serializable, Cloneable, StructuredPojo
A comment posted by a user on a control. This includes the author's name, the comment text, and a timestamp.
Constructor and Description |
---|
ControlComment() |
Modifier and Type | Method and Description |
---|---|
ControlComment |
clone() |
boolean |
equals(Object obj) |
String |
getAuthorName()
The name of the user who authored the comment.
|
String |
getCommentBody()
The body text of a control comment.
|
Date |
getPostedDate()
The time when the comment was posted.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAuthorName(String authorName)
The name of the user who authored the comment.
|
void |
setCommentBody(String commentBody)
The body text of a control comment.
|
void |
setPostedDate(Date postedDate)
The time when the comment was posted.
|
String |
toString()
Returns a string representation of this object.
|
ControlComment |
withAuthorName(String authorName)
The name of the user who authored the comment.
|
ControlComment |
withCommentBody(String commentBody)
The body text of a control comment.
|
ControlComment |
withPostedDate(Date postedDate)
The time when the comment was posted.
|
public void setAuthorName(String authorName)
The name of the user who authored the comment.
authorName
- The name of the user who authored the comment.public String getAuthorName()
The name of the user who authored the comment.
public ControlComment withAuthorName(String authorName)
The name of the user who authored the comment.
authorName
- The name of the user who authored the comment.public void setCommentBody(String commentBody)
The body text of a control comment.
commentBody
- The body text of a control comment.public String getCommentBody()
The body text of a control comment.
public ControlComment withCommentBody(String commentBody)
The body text of a control comment.
commentBody
- The body text of a control comment.public void setPostedDate(Date postedDate)
The time when the comment was posted.
postedDate
- The time when the comment was posted.public Date getPostedDate()
The time when the comment was posted.
public ControlComment withPostedDate(Date postedDate)
The time when the comment was posted.
postedDate
- The time when the comment was posted.public String toString()
toString
in class Object
Object.toString()
public ControlComment clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.