Package org.projectnessie.model
Class ImmutableIcebergTable.Builder
- java.lang.Object
-
- org.projectnessie.model.ImmutableIcebergTable.Builder
-
- Enclosing class:
- ImmutableIcebergTable
@NotThreadSafe public static final class ImmutableIcebergTable.Builder extends Object
Builds instances of typeImmutableIcebergTable. 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 ImmutableIcebergTablebuild()Builds a newImmutableIcebergTable.ImmutableIcebergTable.Builderfrom(Content instance)Fill a builder with attribute values from the providedorg.projectnessie.model.Contentinstance.ImmutableIcebergTable.Builderfrom(IcebergTable instance)Fill a builder with attribute values from the providedorg.projectnessie.model.IcebergTableinstance.ImmutableIcebergTable.Builderid(String id)Initializes the value for theidattribute.ImmutableIcebergTable.BuildermetadataLocation(String metadataLocation)Initializes the value for themetadataLocationattribute.ImmutableIcebergTable.BuilderschemaId(int schemaId)Initializes the value for theschemaIdattribute.ImmutableIcebergTable.BuildersnapshotId(long snapshotId)Initializes the value for thesnapshotIdattribute.ImmutableIcebergTable.BuildersortOrderId(int sortOrderId)Initializes the value for thesortOrderIdattribute.ImmutableIcebergTable.BuilderspecId(int specId)Initializes the value for thespecIdattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableIcebergTable.Builder from(IcebergTable instance)
Fill a builder with attribute values from the providedorg.projectnessie.model.IcebergTableinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableIcebergTable.Builder from(Content instance)
Fill a builder with attribute values from the providedorg.projectnessie.model.Contentinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
id
@CanIgnoreReturnValue public final ImmutableIcebergTable.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
-
metadataLocation
@CanIgnoreReturnValue public final ImmutableIcebergTable.Builder metadataLocation(String metadataLocation)
Initializes the value for themetadataLocationattribute.- Parameters:
metadataLocation- The value for metadataLocation- Returns:
thisbuilder for use in a chained invocation
-
snapshotId
@CanIgnoreReturnValue public final ImmutableIcebergTable.Builder snapshotId(long snapshotId)
Initializes the value for thesnapshotIdattribute.- Parameters:
snapshotId- The value for snapshotId- Returns:
thisbuilder for use in a chained invocation
-
schemaId
@CanIgnoreReturnValue public final ImmutableIcebergTable.Builder schemaId(int schemaId)
Initializes the value for theschemaIdattribute.- Parameters:
schemaId- The value for schemaId- Returns:
thisbuilder for use in a chained invocation
-
specId
@CanIgnoreReturnValue public final ImmutableIcebergTable.Builder specId(int specId)
Initializes the value for thespecIdattribute.- Parameters:
specId- The value for specId- Returns:
thisbuilder for use in a chained invocation
-
sortOrderId
@CanIgnoreReturnValue public final ImmutableIcebergTable.Builder sortOrderId(int sortOrderId)
Initializes the value for thesortOrderIdattribute.- Parameters:
sortOrderId- The value for sortOrderId- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableIcebergTable build()
Builds a newImmutableIcebergTable.- Returns:
- An immutable instance of IcebergTable
- Throws:
IllegalStateException- if any required attributes are missing
-
-