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