Class GetCommentsForPullRequestRequest
- 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.GetCommentsForPullRequestRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetCommentsForPullRequestRequest.Builder,GetCommentsForPullRequestRequest>
@Generated("software.amazon.awssdk:codegen") public final class GetCommentsForPullRequestRequest extends CodeCommitRequest implements ToCopyableBuilder<GetCommentsForPullRequestRequest.Builder,GetCommentsForPullRequestRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetCommentsForPullRequestRequest.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 was the tip of the branch at the time the comment was made.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 GetCommentsForPullRequestRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegermaxResults()A non-zero, non-negative integer used to limit the number of returned results.StringnextToken()An enumeration token that, when provided in a request, returns the next batch of the results.StringpullRequestId()The system-generated ID of the pull request.StringrepositoryName()The name of the repository that contains the pull request.List<SdkField<?>>sdkFields()static Class<? extends GetCommentsForPullRequestRequest.Builder>serializableBuilderClass()GetCommentsForPullRequestRequest.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 that contains the pull request. Requirement is conditional:
repositoryNamemust be specified whenbeforeCommitIdandafterCommitIdare included.- Returns:
- The name of the repository that contains the pull request. Requirement is conditional:
repositoryNamemust be specified whenbeforeCommitIdandafterCommitIdare included.
-
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. Requirement is conditional:
beforeCommitIdmust be specified whenrepositoryNameis included.- 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. Requirement is conditional:
beforeCommitIdmust be specified whenrepositoryNameis included.
-
afterCommitId
public final String afterCommitId()
The full commit ID of the commit in the source branch that was the tip of the branch at the time the comment was made. Requirement is conditional:
afterCommitIdmust be specified whenrepositoryNameis included.- Returns:
- The full commit ID of the commit in the source branch that was the tip of the branch at the time the
comment was made. Requirement is conditional:
afterCommitIdmust be specified whenrepositoryNameis included.
-
nextToken
public final String nextToken()
An enumeration token that, when provided in a request, returns the next batch of the results.
- Returns:
- An enumeration token that, when provided in a request, returns the next batch of the results.
-
maxResults
public final Integer maxResults()
A non-zero, non-negative integer used to limit the number of returned results. The default is 100 comments. You can return up to 500 comments with a single request.
- Returns:
- A non-zero, non-negative integer used to limit the number of returned results. The default is 100 comments. You can return up to 500 comments with a single request.
-
toBuilder
public GetCommentsForPullRequestRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetCommentsForPullRequestRequest.Builder,GetCommentsForPullRequestRequest>- Specified by:
toBuilderin classCodeCommitRequest
-
builder
public static GetCommentsForPullRequestRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetCommentsForPullRequestRequest.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
-
-