Package org.projectnessie.api.params
Class CommitLogParamsBuilder
- java.lang.Object
-
- org.projectnessie.api.params.CommitLogParamsBuilder
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @NotThreadSafe public final class CommitLogParamsBuilder extends Object
CommitLogParamsBuildercollects parameters and invokes the static factory method:new org.projectnessie.api.params.CommitLogParams(..). Call thebuild()method to get a result of typeorg.projectnessie.api.params.CommitLogParams.CommitLogParamsBuilderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Constructor Summary
Constructors Constructor Description CommitLogParamsBuilder()Creates aCommitLogParamsBuilderfactory builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommitLogParamsbuild()Invokesnew org.projectnessie.api.params.CommitLogParams(..)using the collected parameters and returns the result of the invocationCommitLogParamsBuilderendHash(String endHash)Initializes the value for theendHashattribute.CommitLogParamsBuilderfetchOption(FetchOption fetchOption)Initializes the value for thefetchOptionattribute.CommitLogParamsBuilderfilter(String filter)Initializes the value for thefilterattribute.CommitLogParamsBuildermaxRecords(Integer maxRecords)Initializes the value for themaxRecordsattribute.CommitLogParamsBuilderpageToken(String pageToken)Initializes the value for thepageTokenattribute.CommitLogParamsBuilderstartHash(String startHash)Initializes the value for thestartHashattribute.
-
-
-
Constructor Detail
-
CommitLogParamsBuilder
public CommitLogParamsBuilder()
Creates aCommitLogParamsBuilderfactory builder.new CommitLogParamsBuilder() .startHash(String | null) // nullablestartHash.endHash(String | null) // nullableendHash.maxRecords(Integer | null) // nullablemaxRecords.pageToken(String | null) // nullablepageToken.filter(String | null) // nullablefilter.fetchOption(org.projectnessie.api.params.FetchOption | null) // nullablefetchOption.build();
-
-
Method Detail
-
startHash
@CanIgnoreReturnValue public final CommitLogParamsBuilder startHash(@Nullable String startHash)
Initializes the value for thestartHashattribute.- Parameters:
startHash- The value for startHash (can benull)- Returns:
thisbuilder for use in a chained invocation
-
endHash
@CanIgnoreReturnValue public final CommitLogParamsBuilder endHash(@Nullable String endHash)
Initializes the value for theendHashattribute.- Parameters:
endHash- The value for endHash (can benull)- Returns:
thisbuilder for use in a chained invocation
-
maxRecords
@CanIgnoreReturnValue public final CommitLogParamsBuilder maxRecords(@Nullable Integer maxRecords)
Initializes the value for themaxRecordsattribute.- Parameters:
maxRecords- The value for maxRecords (can benull)- Returns:
thisbuilder for use in a chained invocation
-
pageToken
@CanIgnoreReturnValue public final CommitLogParamsBuilder pageToken(@Nullable String pageToken)
Initializes the value for thepageTokenattribute.- Parameters:
pageToken- The value for pageToken (can benull)- Returns:
thisbuilder for use in a chained invocation
-
filter
@CanIgnoreReturnValue public final CommitLogParamsBuilder filter(@Nullable String filter)
Initializes the value for thefilterattribute.- Parameters:
filter- The value for filter (can benull)- Returns:
thisbuilder for use in a chained invocation
-
fetchOption
@CanIgnoreReturnValue public final CommitLogParamsBuilder fetchOption(@Nullable FetchOption fetchOption)
Initializes the value for thefetchOptionattribute.- Parameters:
fetchOption- The value for fetchOption (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public CommitLogParams build()
Invokesnew org.projectnessie.api.params.CommitLogParams(..)using the collected parameters and returns the result of the invocation- Returns:
- A result of type
org.projectnessie.api.params.CommitLogParams - Throws:
IllegalStateException- if any required attributes are missing
-
-