Class CommitLogParamsBuilder


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

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

    • Constructor Detail

      • CommitLogParamsBuilder

        public CommitLogParamsBuilder()
        Creates a CommitLogParamsBuilder factory builder.
         new CommitLogParamsBuilder()
            .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
            .fetchOption(org.projectnessie.api.params.FetchOption | null) // nullable fetchOption
            .build();
         
    • Method Detail

      • startHash

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

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