Package org.projectnessie.model
Class ImmutableIcebergView.Builder
- java.lang.Object
-
- org.projectnessie.model.ImmutableIcebergView.Builder
-
- Enclosing class:
- ImmutableIcebergView
@NotThreadSafe public static final class ImmutableIcebergView.Builder extends Object
Builds instances of typeImmutableIcebergView. 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 ImmutableIcebergViewbuild()Builds a newImmutableIcebergView.ImmutableIcebergView.Builderdialect(String dialect)Initializes the value for thedialectattribute.ImmutableIcebergView.Builderfrom(Content instance)Fill a builder with attribute values from the providedorg.projectnessie.model.Contentinstance.ImmutableIcebergView.Builderfrom(IcebergView instance)Fill a builder with attribute values from the providedorg.projectnessie.model.IcebergViewinstance.ImmutableIcebergView.Builderid(String id)Initializes the value for theidattribute.ImmutableIcebergView.BuildermetadataLocation(String metadataLocation)Initializes the value for themetadataLocationattribute.ImmutableIcebergView.BuilderschemaId(int schemaId)Initializes the value for theschemaIdattribute.ImmutableIcebergView.BuildersqlText(String sqlText)Initializes the value for thesqlTextattribute.ImmutableIcebergView.BuilderversionId(int versionId)Initializes the value for theversionIdattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableIcebergView.Builder from(IcebergView instance)
Fill a builder with attribute values from the providedorg.projectnessie.model.IcebergViewinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableIcebergView.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 ImmutableIcebergView.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 ImmutableIcebergView.Builder metadataLocation(String metadataLocation)
Initializes the value for themetadataLocationattribute.- Parameters:
metadataLocation- The value for metadataLocation- Returns:
thisbuilder for use in a chained invocation
-
versionId
@CanIgnoreReturnValue public final ImmutableIcebergView.Builder versionId(int versionId)
Initializes the value for theversionIdattribute.- Parameters:
versionId- The value for versionId- Returns:
thisbuilder for use in a chained invocation
-
schemaId
@CanIgnoreReturnValue public final ImmutableIcebergView.Builder schemaId(int schemaId)
Initializes the value for theschemaIdattribute.- Parameters:
schemaId- The value for schemaId- Returns:
thisbuilder for use in a chained invocation
-
sqlText
@CanIgnoreReturnValue public final ImmutableIcebergView.Builder sqlText(String sqlText)
Initializes the value for thesqlTextattribute.- Parameters:
sqlText- The value for sqlText- Returns:
thisbuilder for use in a chained invocation
-
dialect
@CanIgnoreReturnValue public final ImmutableIcebergView.Builder dialect(String dialect)
Initializes the value for thedialectattribute.- Parameters:
dialect- The value for dialect- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableIcebergView build()
Builds a newImmutableIcebergView.- Returns:
- An immutable instance of IcebergView
- Throws:
IllegalStateException- if any required attributes are missing
-
-