Package org.projectnessie.model
Class ImmutableRefLogResponse.Builder
- java.lang.Object
-
- org.projectnessie.model.ImmutableRefLogResponse.Builder
-
- Enclosing class:
- ImmutableRefLogResponse
@NotThreadSafe public static final class ImmutableRefLogResponse.Builder extends Object
Builds instances of typeImmutableRefLogResponse. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableRefLogResponse.Builder from(PaginatedResponse instance)
Fill a builder with attribute values from the providedorg.projectnessie.model.PaginatedResponseinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableRefLogResponse.Builder from(RefLogResponse instance)
Fill a builder with attribute values from the providedorg.projectnessie.model.RefLogResponseinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
isHasMore
@CanIgnoreReturnValue public final ImmutableRefLogResponse.Builder isHasMore(boolean isHasMore)
Initializes the value for theisHasMoreattribute.If not set, this attribute will have a default value as returned by the initializer of
isHasMore.- Parameters:
isHasMore- The value for isHasMore- Returns:
thisbuilder for use in a chained invocation
-
token
@CanIgnoreReturnValue public final ImmutableRefLogResponse.Builder token(@Nullable String token)
Initializes the value for thetokenattribute.- Parameters:
token- The value for token (can benull)- Returns:
thisbuilder for use in a chained invocation
-
addLogEntries
@CanIgnoreReturnValue public final ImmutableRefLogResponse.Builder addLogEntries(RefLogResponse.RefLogResponseEntry element)
Adds one element tologEntrieslist.- Parameters:
element- A logEntries element- Returns:
thisbuilder for use in a chained invocation
-
addLogEntries
@CanIgnoreReturnValue public final ImmutableRefLogResponse.Builder addLogEntries(RefLogResponse.RefLogResponseEntry... elements)
Adds elements tologEntrieslist.- Parameters:
elements- An array of logEntries elements- Returns:
thisbuilder for use in a chained invocation
-
logEntries
@CanIgnoreReturnValue public final ImmutableRefLogResponse.Builder logEntries(Iterable<? extends RefLogResponse.RefLogResponseEntry> elements)
Sets or replaces all elements forlogEntrieslist.- Parameters:
elements- An iterable of logEntries elements- Returns:
thisbuilder for use in a chained invocation
-
addAllLogEntries
@CanIgnoreReturnValue public final ImmutableRefLogResponse.Builder addAllLogEntries(Iterable<? extends RefLogResponse.RefLogResponseEntry> elements)
Adds elements tologEntrieslist.- Parameters:
elements- An iterable of logEntries elements- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableRefLogResponse build()
Builds a newImmutableRefLogResponse.- Returns:
- An immutable instance of RefLogResponse
- Throws:
IllegalStateException- if any required attributes are missing
-
-