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(Contents instance)Fill a builder with attribute values from the providedorg.projectnessie.model.Contentsinstance.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.BuilderidGenerators(String idGenerators)Initializes the value for theidGeneratorsattribute.ImmutableIcebergTable.BuildermetadataLocation(String metadataLocation)Initializes the value for themetadataLocationattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableIcebergTable.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
-
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
-
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
-
idGenerators
@CanIgnoreReturnValue public final ImmutableIcebergTable.Builder idGenerators(String idGenerators)
Initializes the value for theidGeneratorsattribute.- Parameters:
idGenerators- The value for idGenerators- 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
-
-