Interface GetBlobDifferencesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CodeCommitRequest.Builder,CopyableBuilder<GetBlobDifferencesRequest.Builder,,GetBlobDifferencesRequest> SdkBuilder<GetBlobDifferencesRequest.Builder,,GetBlobDifferencesRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
GetBlobDifferencesRequest
-
Method Summary
Modifier and TypeMethodDescriptionafterBlobId(String afterBlobId) The ID of the "after" (destination) blob in the diff.beforeBlobId(String beforeBlobId) The ID of the "before" (source) blob in the diff.contextLines(Integer contextLines) The number of unchanged lines of context to include before and after each block of changes in a hunk.ignoreWhitespace(Boolean ignoreWhitespace) Specifies whether to ignore whitespace-only changes when computing the diff.maxResults(Integer maxResults) The maximum number ofDiffHunkentries to return in a single response page.An enumeration token that returns the next batch of results when present in a request.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.repositoryName(String repositoryName) The name of the repository that contains the blobs to compare.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.codecommit.model.CodeCommitRequest.Builder
buildMethods 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, sdkFields
-
Method Details
-
repositoryName
The name of the repository that contains the blobs to compare.
- Parameters:
repositoryName- The name of the repository that contains the blobs to compare.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
afterBlobId
The ID of the "after" (destination) blob in the diff. Typically the value of
afterBlob.blobIdfrom aDifferenceobject returned by GetDifferences.- Parameters:
afterBlobId- The ID of the "after" (destination) blob in the diff. Typically the value ofafterBlob.blobIdfrom aDifferenceobject returned by GetDifferences.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
beforeBlobId
The ID of the "before" (source) blob in the diff. Typically the value of
beforeBlob.blobIdfrom aDifferenceobject returned by GetDifferences.If you do not specify a value, the operation returns a diff against an empty before-state. This is equivalent to treating the file as newly added.
- Parameters:
beforeBlobId- The ID of the "before" (source) blob in the diff. Typically the value ofbeforeBlob.blobIdfrom aDifferenceobject returned by GetDifferences.If you do not specify a value, the operation returns a diff against an empty before-state. This is equivalent to treating the file as newly added.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contextLines
The number of unchanged lines of context to include before and after each block of changes in a hunk. Valid values are 0 through 20. Defaults to
3.- Parameters:
contextLines- The number of unchanged lines of context to include before and after each block of changes in a hunk. Valid values are 0 through 20. Defaults to3.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ignoreWhitespace
Specifies whether to ignore whitespace-only changes when computing the diff. When
true, the operation treats lines that differ only in whitespace as unchanged. Defaults tofalse.- Parameters:
ignoreWhitespace- Specifies whether to ignore whitespace-only changes when computing the diff. Whentrue, the operation treats lines that differ only in whitespace as unchanged. Defaults tofalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of
DiffHunkentries to return in a single response page. Defaults to100.- Parameters:
maxResults- The maximum number ofDiffHunkentries to return in a single response page. Defaults to100.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
An enumeration token that returns the next batch of results when present in a request.
- Parameters:
nextToken- An enumeration token that returns the next batch of results when present in a request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
GetBlobDifferencesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetBlobDifferencesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-