Class RefLogParamsBuilder


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

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

    • Constructor Detail

      • RefLogParamsBuilder

        public RefLogParamsBuilder()
        Creates a RefLogParamsBuilder factory builder.
         new RefLogParamsBuilder()
            .startHash(String | null) // nullable startHash
            .endHash(String | null) // nullable endHash
            .maxRecords(Integer | null) // nullable maxRecords
            .pageToken(String | null) // nullable pageToken
            .filter(String | null) // nullable filter
            .build();
         
    • Method Detail

      • startHash

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

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

        @CanIgnoreReturnValue
        public final RefLogParamsBuilder maxRecords​(@Nullable
                                                    Integer maxRecords)
        Initializes the value for the maxRecords attribute.
        Parameters:
        maxRecords - The value for maxRecords (can be null)
        Returns:
        this builder for use in a chained invocation
      • pageToken

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

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

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