Package org.projectnessie.api.params
Class EntriesParamsBuilder
- java.lang.Object
-
- org.projectnessie.api.params.EntriesParamsBuilder
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @NotThreadSafe public final class EntriesParamsBuilder extends Object
EntriesParamsBuildercollects parameters and invokes the static factory method:new org.projectnessie.api.params.EntriesParams(..). Call thebuild()method to get a result of typeorg.projectnessie.api.params.EntriesParams.EntriesParamsBuilderis 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 EntriesParamsBuilder()Creates aEntriesParamsBuilderfactory builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntriesParamsbuild()Invokesnew org.projectnessie.api.params.EntriesParams(..)using the collected parameters and returns the result of the invocationEntriesParamsBuilderfilter(String filter)Initializes the value for thefilterattribute.EntriesParamsBuilderhashOnRef(String hashOnRef)Initializes the value for thehashOnRefattribute.EntriesParamsBuildermaxRecords(Integer maxRecords)Initializes the value for themaxRecordsattribute.EntriesParamsBuildernamespaceDepth(Integer namespaceDepth)Initializes the value for thenamespaceDepthattribute.EntriesParamsBuilderpageToken(String pageToken)Initializes the value for thepageTokenattribute.
-
-
-
Constructor Detail
-
EntriesParamsBuilder
public EntriesParamsBuilder()
Creates aEntriesParamsBuilderfactory builder.new EntriesParamsBuilder() .hashOnRef(String | null) // nullablehashOnRef.maxRecords(Integer | null) // nullablemaxRecords.pageToken(String | null) // nullablepageToken.namespaceDepth(Integer | null) // nullablenamespaceDepth.filter(String | null) // nullablefilter.build();
-
-
Method Detail
-
hashOnRef
@CanIgnoreReturnValue public final EntriesParamsBuilder hashOnRef(@Nullable String hashOnRef)
Initializes the value for thehashOnRefattribute.- Parameters:
hashOnRef- The value for hashOnRef (can benull)- Returns:
thisbuilder for use in a chained invocation
-
maxRecords
@CanIgnoreReturnValue public final EntriesParamsBuilder 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 EntriesParamsBuilder 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
-
namespaceDepth
@CanIgnoreReturnValue public final EntriesParamsBuilder namespaceDepth(@Nullable Integer namespaceDepth)
Initializes the value for thenamespaceDepthattribute.- Parameters:
namespaceDepth- The value for namespaceDepth (can benull)- Returns:
thisbuilder for use in a chained invocation
-
filter
@CanIgnoreReturnValue public final EntriesParamsBuilder 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 EntriesParams build()
Invokesnew org.projectnessie.api.params.EntriesParams(..)using the collected parameters and returns the result of the invocation- Returns:
- A result of type
org.projectnessie.api.params.EntriesParams - Throws:
IllegalStateException- if any required attributes are missing
-
-