Package org.projectnessie.model
Class ImmutableDeltaLakeTable.Builder
- java.lang.Object
-
- org.projectnessie.model.ImmutableDeltaLakeTable.Builder
-
- Enclosing class:
- ImmutableDeltaLakeTable
@NotThreadSafe public static final class ImmutableDeltaLakeTable.Builder extends Object
Builds instances of typeImmutableDeltaLakeTable. 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 ImmutableDeltaLakeTable.Builder from(DeltaLakeTable instance)
Fill a builder with attribute values from the providedorg.projectnessie.model.DeltaLakeTableinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableDeltaLakeTable.Builder from(Contents instance)
Fill a builder with attribute values from the providedorg.projectnessie.model.Contentsinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
id
@CanIgnoreReturnValue public final ImmutableDeltaLakeTable.Builder id(String id)
Initializes the value for theidattribute.If not set, this attribute will have a default value as returned by the initializer of
id.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
addMetadataLocationHistory
@CanIgnoreReturnValue public final ImmutableDeltaLakeTable.Builder addMetadataLocationHistory(String element)
Adds one element tometadataLocationHistorylist.- Parameters:
element- A metadataLocationHistory element- Returns:
thisbuilder for use in a chained invocation
-
addMetadataLocationHistory
@CanIgnoreReturnValue public final ImmutableDeltaLakeTable.Builder addMetadataLocationHistory(String... elements)
Adds elements tometadataLocationHistorylist.- Parameters:
elements- An array of metadataLocationHistory elements- Returns:
thisbuilder for use in a chained invocation
-
metadataLocationHistory
@CanIgnoreReturnValue public final ImmutableDeltaLakeTable.Builder metadataLocationHistory(Iterable<String> elements)
Sets or replaces all elements formetadataLocationHistorylist.- Parameters:
elements- An iterable of metadataLocationHistory elements- Returns:
thisbuilder for use in a chained invocation
-
addAllMetadataLocationHistory
@CanIgnoreReturnValue public final ImmutableDeltaLakeTable.Builder addAllMetadataLocationHistory(Iterable<String> elements)
Adds elements tometadataLocationHistorylist.- Parameters:
elements- An iterable of metadataLocationHistory elements- Returns:
thisbuilder for use in a chained invocation
-
addCheckpointLocationHistory
@CanIgnoreReturnValue public final ImmutableDeltaLakeTable.Builder addCheckpointLocationHistory(String element)
Adds one element tocheckpointLocationHistorylist.- Parameters:
element- A checkpointLocationHistory element- Returns:
thisbuilder for use in a chained invocation
-
addCheckpointLocationHistory
@CanIgnoreReturnValue public final ImmutableDeltaLakeTable.Builder addCheckpointLocationHistory(String... elements)
Adds elements tocheckpointLocationHistorylist.- Parameters:
elements- An array of checkpointLocationHistory elements- Returns:
thisbuilder for use in a chained invocation
-
checkpointLocationHistory
@CanIgnoreReturnValue public final ImmutableDeltaLakeTable.Builder checkpointLocationHistory(Iterable<String> elements)
Sets or replaces all elements forcheckpointLocationHistorylist.- Parameters:
elements- An iterable of checkpointLocationHistory elements- Returns:
thisbuilder for use in a chained invocation
-
addAllCheckpointLocationHistory
@CanIgnoreReturnValue public final ImmutableDeltaLakeTable.Builder addAllCheckpointLocationHistory(Iterable<String> elements)
Adds elements tocheckpointLocationHistorylist.- Parameters:
elements- An iterable of checkpointLocationHistory elements- Returns:
thisbuilder for use in a chained invocation
-
lastCheckpoint
@CanIgnoreReturnValue public final ImmutableDeltaLakeTable.Builder lastCheckpoint(@Nullable String lastCheckpoint)
Initializes the value for thelastCheckpointattribute.- Parameters:
lastCheckpoint- The value for lastCheckpoint (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableDeltaLakeTable build()
Builds a newImmutableDeltaLakeTable.- Returns:
- An immutable instance of DeltaLakeTable
- Throws:
IllegalStateException- if any required attributes are missing
-
-