Class NamespaceParamsBuilder


  • @ParametersAreNonnullByDefault
    @Generated("org.immutables.processor.ProxyProcessor")
    @NotThreadSafe
    public final class NamespaceParamsBuilder
    extends Object
    NamespaceParamsBuilder collects parameters and invokes the static factory method: new org.projectnessie.api.params.NamespaceParams(..). Call the build() method to get a result of type org.projectnessie.api.params.NamespaceParams.

    NamespaceParamsBuilder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Constructor Detail

      • NamespaceParamsBuilder

        public NamespaceParamsBuilder()
        Creates a NamespaceParamsBuilder factory builder.
         new NamespaceParamsBuilder()
            .refName(String) // required refName
            .namespace(org.projectnessie.model.Namespace) // required namespace
            .hashOnRef(String | null) // nullable hashOnRef
            .build();
         
    • Method Detail

      • refName

        @CanIgnoreReturnValue
        public final NamespaceParamsBuilder refName​(String refName)
        Initializes the value for the refName attribute.
        Parameters:
        refName - The value for refName
        Returns:
        this builder for use in a chained invocation
      • namespace

        @CanIgnoreReturnValue
        public final NamespaceParamsBuilder namespace​(Namespace namespace)
        Initializes the value for the namespace attribute.
        Parameters:
        namespace - The value for namespace
        Returns:
        this builder for use in a chained invocation
      • hashOnRef

        @CanIgnoreReturnValue
        public final NamespaceParamsBuilder hashOnRef​(@Nullable
                                                      String hashOnRef)
        Initializes the value for the hashOnRef attribute.
        Parameters:
        hashOnRef - The value for hashOnRef (can be null)
        Returns:
        this builder for use in a chained invocation
      • build

        public NamespaceParams build()
        Invokes new 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