Package org.projectnessie.api.params
Class DiffParamsBuilder
- java.lang.Object
-
- org.projectnessie.api.params.DiffParamsBuilder
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @NotThreadSafe public final class DiffParamsBuilder extends Object
DiffParamsBuildercollects parameters and invokes the static factory method:new org.projectnessie.api.params.DiffParams(..). Call thebuild()method to get a result of typeorg.projectnessie.api.params.DiffParams.DiffParamsBuilderis 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 DiffParamsBuilder()Creates aDiffParamsBuilderfactory builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiffParamsbuild()Invokesnew org.projectnessie.api.params.DiffParams(..)using the collected parameters and returns the result of the invocationDiffParamsBuilderfromHashOnRef(String fromHashOnRef)Initializes the value for thefromHashOnRefattribute.DiffParamsBuilderfromRef(String fromRef)Initializes the value for thefromRefattribute.DiffParamsBuildertoHashOnRef(String toHashOnRef)Initializes the value for thetoHashOnRefattribute.DiffParamsBuildertoRef(String toRef)Initializes the value for thetoRefattribute.
-
-
-
Constructor Detail
-
DiffParamsBuilder
public DiffParamsBuilder()
Creates aDiffParamsBuilderfactory builder.new DiffParamsBuilder() .fromRef(String) // requiredfromRef.fromHashOnRef(String | null) // nullablefromHashOnRef.toRef(String) // requiredtoRef.toHashOnRef(String | null) // nullabletoHashOnRef.build();
-
-
Method Detail
-
fromRef
@CanIgnoreReturnValue public final DiffParamsBuilder fromRef(String fromRef)
Initializes the value for thefromRefattribute.- Parameters:
fromRef- The value for fromRef- Returns:
thisbuilder for use in a chained invocation
-
fromHashOnRef
@CanIgnoreReturnValue public final DiffParamsBuilder fromHashOnRef(@Nullable String fromHashOnRef)
Initializes the value for thefromHashOnRefattribute.- Parameters:
fromHashOnRef- The value for fromHashOnRef (can benull)- Returns:
thisbuilder for use in a chained invocation
-
toRef
@CanIgnoreReturnValue public final DiffParamsBuilder toRef(String toRef)
Initializes the value for thetoRefattribute.- Parameters:
toRef- The value for toRef- Returns:
thisbuilder for use in a chained invocation
-
toHashOnRef
@CanIgnoreReturnValue public final DiffParamsBuilder toHashOnRef(@Nullable String toHashOnRef)
Initializes the value for thetoHashOnRefattribute.- Parameters:
toHashOnRef- The value for toHashOnRef (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public DiffParams build()
Invokesnew org.projectnessie.api.params.DiffParams(..)using the collected parameters and returns the result of the invocation- Returns:
- A result of type
org.projectnessie.api.params.DiffParams - Throws:
IllegalStateException- if any required attributes are missing
-
-