Interface GetBlobDifferencesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CodeCommitResponse.Builder,CopyableBuilder<GetBlobDifferencesResponse.Builder,,GetBlobDifferencesResponse> SdkBuilder<GetBlobDifferencesResponse.Builder,,GetBlobDifferencesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetBlobDifferencesResponse
-
Method Summary
Modifier and TypeMethodDescriptionafterBlobSize(Long afterBlobSize) The size, in bytes, of the blob identified byafterBlobId.beforeBlobSize(Long beforeBlobSize) The size, in bytes, of the blob identified bybeforeBlobId.hunks(Collection<DiffHunk> hunks) An ordered list of diff hunks.hunks(Consumer<DiffHunk.Builder>... hunks) An ordered list of diff hunks.An ordered list of diff hunks.Specifies whether the operation treated the diff content as binary.An enumeration token that can be used in a request to return the next batch ofDiffHunkentries.Methods inherited from interface software.amazon.awssdk.services.codecommit.model.CodeCommitResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
hunks
An ordered list of diff hunks. Each hunk represents a contiguous run of changed and adjacent context lines. The list is empty when the blobs are identical or when the content is binary. The list is also empty when a paginated request has already returned all hunks in earlier pages, in which case
NextTokenis alsonull.- Parameters:
hunks- An ordered list of diff hunks. Each hunk represents a contiguous run of changed and adjacent context lines. The list is empty when the blobs are identical or when the content is binary. The list is also empty when a paginated request has already returned all hunks in earlier pages, in which caseNextTokenis alsonull.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hunks
An ordered list of diff hunks. Each hunk represents a contiguous run of changed and adjacent context lines. The list is empty when the blobs are identical or when the content is binary. The list is also empty when a paginated request has already returned all hunks in earlier pages, in which case
NextTokenis alsonull.- Parameters:
hunks- An ordered list of diff hunks. Each hunk represents a contiguous run of changed and adjacent context lines. The list is empty when the blobs are identical or when the content is binary. The list is also empty when a paginated request has already returned all hunks in earlier pages, in which caseNextTokenis alsonull.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hunks
An ordered list of diff hunks. Each hunk represents a contiguous run of changed and adjacent context lines. The list is empty when the blobs are identical or when the content is binary. The list is also empty when a paginated request has already returned all hunks in earlier pages, in which case
This is a convenience method that creates an instance of theNextTokenis alsonull.DiffHunk.Builderavoiding the need to create one manually viaDiffHunk.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohunks(List<DiffHunk>).- Parameters:
hunks- a consumer that will call methods onDiffHunk.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
isBinary
Specifies whether the operation treated the diff content as binary. When
true, the operation does not compute a line-level diff andhunksis empty.- Parameters:
isBinary- Specifies whether the operation treated the diff content as binary. Whentrue, the operation does not compute a line-level diff andhunksis empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
beforeBlobSize
The size, in bytes, of the blob identified by
beforeBlobId. Returns0when you do not specifybeforeBlobId.- Parameters:
beforeBlobSize- The size, in bytes, of the blob identified bybeforeBlobId. Returns0when you do not specifybeforeBlobId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
afterBlobSize
The size, in bytes, of the blob identified by
afterBlobId.- Parameters:
afterBlobSize- The size, in bytes, of the blob identified byafterBlobId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
An enumeration token that can be used in a request to return the next batch of
DiffHunkentries.nullwhen the response contains the final page of the diff.- Parameters:
nextToken- An enumeration token that can be used in a request to return the next batch ofDiffHunkentries.nullwhen the response contains the final page of the diff.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-