Package org.projectnessie.api.params
Class RefLogParamsBuilder
- java.lang.Object
-
- org.projectnessie.api.params.RefLogParamsBuilder
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @NotThreadSafe public final class RefLogParamsBuilder extends Object
RefLogParamsBuildercollects parameters and invokes the static factory method:new org.projectnessie.api.params.RefLogParams(..). Call thebuild()method to get a result of typeorg.projectnessie.api.params.RefLogParams.RefLogParamsBuilderis 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 RefLogParamsBuilder()Creates aRefLogParamsBuilderfactory builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RefLogParamsbuild()Invokesnew org.projectnessie.api.params.RefLogParams(..)using the collected parameters and returns the result of the invocationRefLogParamsBuilderendHash(String endHash)Initializes the value for theendHashattribute.RefLogParamsBuilderfilter(String filter)Initializes the value for thefilterattribute.RefLogParamsBuildermaxRecords(Integer maxRecords)Initializes the value for themaxRecordsattribute.RefLogParamsBuilderpageToken(String pageToken)Initializes the value for thepageTokenattribute.RefLogParamsBuilderstartHash(String startHash)Initializes the value for thestartHashattribute.
-
-
-
Constructor Detail
-
RefLogParamsBuilder
public RefLogParamsBuilder()
Creates aRefLogParamsBuilderfactory builder.new RefLogParamsBuilder() .startHash(String | null) // nullablestartHash.endHash(String | null) // nullableendHash.maxRecords(Integer | null) // nullablemaxRecords.pageToken(String | null) // nullablepageToken.filter(String | null) // nullablefilter.build();
-
-
Method Detail
-
startHash
@CanIgnoreReturnValue public final RefLogParamsBuilder 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 RefLogParamsBuilder 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 RefLogParamsBuilder 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 RefLogParamsBuilder 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 RefLogParamsBuilder 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
-
build
public RefLogParams build()
Invokesnew org.projectnessie.api.params.RefLogParams(..)using the collected parameters and returns the result of the invocation- Returns:
- A result of type
org.projectnessie.api.params.RefLogParams - Throws:
IllegalStateException- if any required attributes are missing
-
-