Class ImmutableReferencesResponse.Builder

  • Enclosing class:
    ImmutableReferencesResponse

    @NotThreadSafe
    public static final class ImmutableReferencesResponse.Builder
    extends Object
    Builds instances of type ImmutableReferencesResponse. Initialize attributes and then invoke the build() method to create an immutable instance.

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

    • Method Detail

      • from

        @CanIgnoreReturnValue
        public final ImmutableReferencesResponse.Builder from​(ReferencesResponse instance)
        Fill a builder with attribute values from the provided org.projectnessie.model.ReferencesResponse instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        @CanIgnoreReturnValue
        public final ImmutableReferencesResponse.Builder from​(PaginatedResponse instance)
        Fill a builder with attribute values from the provided org.projectnessie.model.PaginatedResponse instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • isHasMore

        @CanIgnoreReturnValue
        public final ImmutableReferencesResponse.Builder isHasMore​(boolean isHasMore)
        Initializes the value for the isHasMore attribute.

        If not set, this attribute will have a default value as returned by the initializer of isHasMore.

        Parameters:
        isHasMore - The value for isHasMore
        Returns:
        this builder for use in a chained invocation
      • addReferences

        @CanIgnoreReturnValue
        public final ImmutableReferencesResponse.Builder addReferences​(Reference... elements)
        Adds elements to references list.
        Parameters:
        elements - An array of references elements
        Returns:
        this builder for use in a chained invocation