Interface GetBlobDifferencesResponse.Builder

  • 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 NextToken is also null.

      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 case NextToken is also null.
      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 NextToken is also null.

      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 case NextToken is also null.
      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 NextToken is also null.

      This is a convenience method that creates an instance of the DiffHunk.Builder avoiding the need to create one manually via DiffHunk.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to hunks(List<DiffHunk>).

      Parameters:
      hunks - a consumer that will call methods on DiffHunk.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 and hunks is empty.

      Parameters:
      isBinary - Specifies whether the operation treated the diff content as binary. When true, the operation does not compute a line-level diff and hunks is empty.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • beforeBlobSize

      GetBlobDifferencesResponse.Builder beforeBlobSize(Long beforeBlobSize)

      The size, in bytes, of the blob identified by beforeBlobId. Returns 0 when you do not specify beforeBlobId.

      Parameters:
      beforeBlobSize - The size, in bytes, of the blob identified by beforeBlobId. Returns 0 when you do not specify beforeBlobId.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • afterBlobSize

      GetBlobDifferencesResponse.Builder afterBlobSize(Long afterBlobSize)

      The size, in bytes, of the blob identified by afterBlobId.

      Parameters:
      afterBlobSize - The size, in bytes, of the blob identified by afterBlobId.
      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 DiffHunk entries. null when 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 of DiffHunk entries. null when the response contains the final page of the diff.
      Returns:
      Returns a reference to this object so that method calls can be chained together.