Package org.projectnessie.model
Class ImmutableDelete.Builder
- java.lang.Object
-
- org.projectnessie.model.ImmutableDelete.Builder
-
- Enclosing class:
- ImmutableDelete
@NotThreadSafe public static final class ImmutableDelete.Builder extends Object
Builds instances of typeImmutableDelete. 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 ImmutableDeletebuild()Builds a newImmutableDelete.ImmutableDelete.Builderfrom(Operation instance)Fill a builder with attribute values from the providedorg.projectnessie.model.Operationinstance.ImmutableDelete.Builderfrom(Operation.Delete instance)Fill a builder with attribute values from the providedorg.projectnessie.model.Operation.Deleteinstance.ImmutableDelete.Builderkey(ContentsKey key)Initializes the value for thekeyattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableDelete.Builder from(Operation instance)
Fill a builder with attribute values from the providedorg.projectnessie.model.Operationinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableDelete.Builder from(Operation.Delete instance)
Fill a builder with attribute values from the providedorg.projectnessie.model.Operation.Deleteinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
key
@CanIgnoreReturnValue public final ImmutableDelete.Builder key(ContentsKey key)
Initializes the value for thekeyattribute.- Parameters:
key- The value for key- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableDelete build()
Builds a newImmutableDelete.- Returns:
- An immutable instance of Delete
- Throws:
IllegalStateException- if any required attributes are missing
-
-