Package org.projectnessie.api.params
Class ReferencesParamsBuilder
- java.lang.Object
-
- org.projectnessie.api.params.ReferencesParamsBuilder
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @NotThreadSafe public final class ReferencesParamsBuilder extends Object
ReferencesParamsBuildercollects parameters and invokes the static factory method:new org.projectnessie.api.params.ReferencesParams(..). Call thebuild()method to get a result of typeorg.projectnessie.api.params.ReferencesParams.ReferencesParamsBuilderis 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 ReferencesParamsBuilder()Creates aReferencesParamsBuilderfactory builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReferencesParamsbuild()Invokesnew org.projectnessie.api.params.ReferencesParams(..)using the collected parameters and returns the result of the invocationReferencesParamsBuilderfetchOption(FetchOption fetchOption)Initializes the value for thefetchOptionattribute.ReferencesParamsBuilderfilter(String filter)Initializes the value for thefilterattribute.ReferencesParamsBuildermaxRecords(Integer maxRecords)Initializes the value for themaxRecordsattribute.ReferencesParamsBuilderpageToken(String pageToken)Initializes the value for thepageTokenattribute.
-
-
-
Constructor Detail
-
ReferencesParamsBuilder
public ReferencesParamsBuilder()
Creates aReferencesParamsBuilderfactory builder.new ReferencesParamsBuilder() .maxRecords(Integer | null) // nullablemaxRecords.pageToken(String | null) // nullablepageToken.fetchOption(org.projectnessie.api.params.FetchOption | null) // nullablefetchOption.filter(String | null) // nullablefilter.build();
-
-
Method Detail
-
maxRecords
@CanIgnoreReturnValue public final ReferencesParamsBuilder 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 ReferencesParamsBuilder 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
-
fetchOption
@CanIgnoreReturnValue public final ReferencesParamsBuilder 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
-
filter
@CanIgnoreReturnValue public final ReferencesParamsBuilder 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 ReferencesParams build()
Invokesnew org.projectnessie.api.params.ReferencesParams(..)using the collected parameters and returns the result of the invocation- Returns:
- A result of type
org.projectnessie.api.params.ReferencesParams - Throws:
IllegalStateException- if any required attributes are missing
-
-