Package org.projectnessie.model
Class ImmutableTableReference.Builder
- java.lang.Object
-
- org.projectnessie.model.ImmutableTableReference.Builder
-
- Enclosing class:
- ImmutableTableReference
@NotThreadSafe public static final class ImmutableTableReference.Builder extends Object
Builds instances of typeImmutableTableReference. 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableTableReferencebuild()Builds a newImmutableTableReference.ImmutableTableReference.Builderfrom(TableReference instance)Fill a builder with attribute values from the providedTableReferenceinstance.ImmutableTableReference.Builderhash(String hash)Initializes the value for thehashattribute.ImmutableTableReference.Buildername(String name)Initializes the value for thenameattribute.ImmutableTableReference.Builderreference(String reference)Initializes the value for thereferenceattribute.ImmutableTableReference.Buildertimestamp(String timestamp)Initializes the value for thetimestampattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableTableReference.Builder from(TableReference instance)
Fill a builder with attribute values from the providedTableReferenceinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
name
@CanIgnoreReturnValue public final ImmutableTableReference.Builder name(String name)
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
reference
@CanIgnoreReturnValue public final ImmutableTableReference.Builder reference(@Nullable String reference)
Initializes the value for thereferenceattribute.- Parameters:
reference- The value for reference (can benull)- Returns:
thisbuilder for use in a chained invocation
-
timestamp
@CanIgnoreReturnValue public final ImmutableTableReference.Builder timestamp(@Nullable String timestamp)
Initializes the value for thetimestampattribute.- Parameters:
timestamp- The value for timestamp (can benull)- Returns:
thisbuilder for use in a chained invocation
-
hash
@CanIgnoreReturnValue public final ImmutableTableReference.Builder hash(@Nullable String hash)
Initializes the value for thehashattribute.- Parameters:
hash- The value for hash (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableTableReference build()
Builds a newImmutableTableReference.- Returns:
- An immutable instance of TableReference
- Throws:
IllegalStateException- if any required attributes are missing
-
-