Class GetReferenceParamsBuilder


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

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

    • Constructor Detail

      • GetReferenceParamsBuilder

        public GetReferenceParamsBuilder()
        Creates a GetReferenceParamsBuilder factory builder.
         new GetReferenceParamsBuilder()
            .refName(String) // required refName
            .fetchOption(org.projectnessie.api.params.FetchOption | null) // nullable fetchOption
            .build();
         
    • Method Detail

      • refName

        @CanIgnoreReturnValue
        public final GetReferenceParamsBuilder 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
      • fetchOption

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

        public GetReferenceParams build()
        Invokes new org.projectnessie.api.params.GetReferenceParams(..) using the collected parameters and returns the result of the invocation
        Returns:
        A result of type org.projectnessie.api.params.GetReferenceParams
        Throws:
        IllegalStateException - if any required attributes are missing