Package io.dialob.client.api
Class ImmutableReleaseWrapper.Builder
- java.lang.Object
-
- io.dialob.client.api.ImmutableReleaseWrapper.Builder
-
- Enclosing class:
- ImmutableReleaseWrapper
@NotThreadSafe public static final class ImmutableReleaseWrapper.Builder extends Object
Builds instances of typeImmutableReleaseWrapper. 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 ImmutableReleaseWrapperbuild()Builds a newImmutableReleaseWrapper.ImmutableReleaseWrapper.Builderdocument(DialobDocument.FormReleaseDocument document)Initializes the value for thedocumentattribute.ImmutableReleaseWrapper.Builderfrom(DialobClient.ReleaseWrapper instance)Fill a builder with attribute values from the providedReleaseWrapperinstance.ImmutableReleaseWrapper.Buildersource(DialobStore.StoreEntity source)Initializes the value for thesourceattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableReleaseWrapper.Builder from(DialobClient.ReleaseWrapper instance)
Fill a builder with attribute values from the providedReleaseWrapperinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
source
@CanIgnoreReturnValue public final ImmutableReleaseWrapper.Builder source(DialobStore.StoreEntity source)
Initializes the value for thesourceattribute.- Parameters:
source- The value for source- Returns:
thisbuilder for use in a chained invocation
-
document
@CanIgnoreReturnValue public final ImmutableReleaseWrapper.Builder document(DialobDocument.FormReleaseDocument document)
Initializes the value for thedocumentattribute.- Parameters:
document- The value for document- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableReleaseWrapper build()
Builds a newImmutableReleaseWrapper.- Returns:
- An immutable instance of ReleaseWrapper
- Throws:
IllegalStateException- if any required attributes are missing
-
-