@NotThreadSafe public static final class ImmutableModifyInstanceValue.Builder<O,T> extends Object
ImmutableModifyInstanceValue.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableModifyInstanceValue<O,T> |
build()
Builds a new
ImmutableModifyInstanceValue. |
ImmutableModifyInstanceValue.Builder<O,T> |
from(ModifyInstanceValue<O,T> instance)
Fill a builder with attribute values from the provided
ModifyInstanceValue instance. |
ImmutableModifyInstanceValue.Builder<O,T> |
id(Id<O> id)
Initializes the value for the
id attribute. |
ImmutableModifyInstanceValue.Builder<O,T> |
property(ModifiableProperty<O,T> property)
Initializes the value for the
property attribute. |
@CanIgnoreReturnValue public final ImmutableModifyInstanceValue.Builder<O,T> from(ModifyInstanceValue<O,T> instance)
ModifyInstanceValue instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableModifyInstanceValue.Builder<O,T> id(Id<O> id)
id attribute.id - The value for idthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableModifyInstanceValue.Builder<O,T> property(ModifiableProperty<O,T> property)
property attribute.property - The value for propertythis builder for use in a chained invocationpublic ImmutableModifyInstanceValue<O,T> build()
ImmutableModifyInstanceValue.IllegalStateException - if any required attributes are missingCopyright © 2023. All rights reserved.