Class ReferencesParamsBuilder


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

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

    • Constructor Detail

      • ReferencesParamsBuilder

        public ReferencesParamsBuilder()
        Creates a ReferencesParamsBuilder factory builder.
         new ReferencesParamsBuilder()
            .maxRecords(Integer | null) // nullable maxRecords
            .pageToken(String | null) // nullable pageToken
            .fetchOption(org.projectnessie.api.params.FetchOption | null) // nullable fetchOption
            .filter(String | null) // nullable filter
            .build();
         
    • Method Detail

      • maxRecords

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

        @CanIgnoreReturnValue
        public final ReferencesParamsBuilder 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
      • filter

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