Package org.projectnessie.api.params
Class NamespaceParamsBuilder
- java.lang.Object
-
- org.projectnessie.api.params.NamespaceParamsBuilder
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @NotThreadSafe public final class NamespaceParamsBuilder extends Object
NamespaceParamsBuildercollects parameters and invokes the static factory method:new org.projectnessie.api.params.NamespaceParams(..). Call thebuild()method to get a result of typeorg.projectnessie.api.params.NamespaceParams.NamespaceParamsBuilderis 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 NamespaceParamsBuilder()Creates aNamespaceParamsBuilderfactory builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamespaceParamsbuild()Invokesnew org.projectnessie.api.params.NamespaceParams(..)using the collected parameters and returns the result of the invocationNamespaceParamsBuilderhashOnRef(String hashOnRef)Initializes the value for thehashOnRefattribute.NamespaceParamsBuildernamespace(Namespace namespace)Initializes the value for thenamespaceattribute.NamespaceParamsBuilderrefName(String refName)Initializes the value for therefNameattribute.
-
-
-
Constructor Detail
-
NamespaceParamsBuilder
public NamespaceParamsBuilder()
Creates aNamespaceParamsBuilderfactory builder.new NamespaceParamsBuilder() .refName(String) // requiredrefName.namespace(org.projectnessie.model.Namespace) // requirednamespace.hashOnRef(String | null) // nullablehashOnRef.build();
-
-
Method Detail
-
refName
@CanIgnoreReturnValue public final NamespaceParamsBuilder refName(String refName)
Initializes the value for therefNameattribute.- Parameters:
refName- The value for refName- Returns:
thisbuilder for use in a chained invocation
-
namespace
@CanIgnoreReturnValue public final NamespaceParamsBuilder namespace(Namespace namespace)
Initializes the value for thenamespaceattribute.- Parameters:
namespace- The value for namespace- Returns:
thisbuilder for use in a chained invocation
-
hashOnRef
@CanIgnoreReturnValue public final NamespaceParamsBuilder 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
-
build
public NamespaceParams build()
Invokesnew org.projectnessie.api.params.NamespaceParams(..)using the collected parameters and returns the result of the invocation- Returns:
- A result of type
org.projectnessie.api.params.NamespaceParams - Throws:
IllegalStateException- if any required attributes are missing
-
-