Class MultipleNamespacesParamsBuilder


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

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

    • Constructor Detail

      • MultipleNamespacesParamsBuilder

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

      • refName

        @CanIgnoreReturnValue
        public final MultipleNamespacesParamsBuilder 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 MultipleNamespacesParamsBuilder namespace​(@Nullable
                                                               Namespace namespace)
        Initializes the value for the namespace attribute.
        Parameters:
        namespace - The value for namespace (can be null)
        Returns:
        this builder for use in a chained invocation
      • hashOnRef

        @CanIgnoreReturnValue
        public final MultipleNamespacesParamsBuilder 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 MultipleNamespacesParams build()
        Invokes new org.projectnessie.api.params.MultipleNamespacesParams(..) using the collected parameters and returns the result of the invocation
        Returns:
        A result of type org.projectnessie.api.params.MultipleNamespacesParams
        Throws:
        IllegalStateException - if any required attributes are missing