Class PostCommentForPullRequestRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.codecommit.model.CodeCommitRequest
-
- software.amazon.awssdk.services.codecommit.model.PostCommentForPullRequestRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<PostCommentForPullRequestRequest.Builder,PostCommentForPullRequestRequest>
@Generated("software.amazon.awssdk:codegen") public final class PostCommentForPullRequestRequest extends CodeCommitRequest implements ToCopyableBuilder<PostCommentForPullRequestRequest.Builder,PostCommentForPullRequestRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePostCommentForPullRequestRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringafterCommitId()The full commit ID of the commit in the source branch that is the current tip of the branch for the pull request when you post the comment.StringbeforeCommitId()The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.static PostCommentForPullRequestRequest.Builderbuilder()StringclientRequestToken()A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter.Stringcontent()The content of your comment on the change.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Locationlocation()The location of the change where you want to post your comment.StringpullRequestId()The system-generated ID of the pull request.StringrepositoryName()The name of the repository where you want to post a comment on a pull request.List<SdkField<?>>sdkFields()static Class<? extends PostCommentForPullRequestRequest.Builder>serializableBuilderClass()PostCommentForPullRequestRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
pullRequestId
public final String pullRequestId()
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
- Returns:
- The system-generated ID of the pull request. To get this ID, use ListPullRequests.
-
repositoryName
public final String repositoryName()
The name of the repository where you want to post a comment on a pull request.
- Returns:
- The name of the repository where you want to post a comment on a pull request.
-
beforeCommitId
public final String beforeCommitId()
The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.
- Returns:
- The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.
-
afterCommitId
public final String afterCommitId()
The full commit ID of the commit in the source branch that is the current tip of the branch for the pull request when you post the comment.
- Returns:
- The full commit ID of the commit in the source branch that is the current tip of the branch for the pull request when you post the comment.
-
location
public final Location location()
The location of the change where you want to post your comment. If no location is provided, the comment is posted as a general comment on the pull request difference between the before commit ID and the after commit ID.
- Returns:
- The location of the change where you want to post your comment. If no location is provided, the comment is posted as a general comment on the pull request difference between the before commit ID and the after commit ID.
-
content
public final String content()
The content of your comment on the change.
- Returns:
- The content of your comment on the change.
-
clientRequestToken
public final String 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.
- Returns:
- 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.
-
toBuilder
public PostCommentForPullRequestRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PostCommentForPullRequestRequest.Builder,PostCommentForPullRequestRequest>- Specified by:
toBuilderin classCodeCommitRequest
-
builder
public static PostCommentForPullRequestRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends PostCommentForPullRequestRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-