Package io.dialob.client.api
Class ImmutableFormReleaseValueDocument.Builder
- java.lang.Object
-
- io.dialob.client.api.ImmutableFormReleaseValueDocument.Builder
-
- Enclosing class:
- ImmutableFormReleaseValueDocument
@NotThreadSafe public static final class ImmutableFormReleaseValueDocument.Builder extends Object
Builds instances of typeImmutableFormReleaseValueDocument. 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 ImmutableFormReleaseValueDocument.BuilderbodyType(DialobDocument.DocumentType bodyType)Initializes the value for thebodyTypeattribute.ImmutableFormReleaseValueDocumentbuild()Builds a newImmutableFormReleaseValueDocument.ImmutableFormReleaseValueDocument.Buildercommands(String commands)Initializes the value for thecommandsattribute.ImmutableFormReleaseValueDocument.Builderdescription(String description)Initializes the value for thedescriptionattribute.ImmutableFormReleaseValueDocument.Builderfrom(DialobDocument.FormReleaseValueDocument instance)Fill a builder with attribute values from the providedFormReleaseValueDocumentinstance.ImmutableFormReleaseValueDocument.Builderhash(String hash)Initializes the value for thehashattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableFormReleaseValueDocument.Builder from(DialobDocument.FormReleaseValueDocument instance)
Fill a builder with attribute values from the providedFormReleaseValueDocumentinstance. 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
-
hash
@CanIgnoreReturnValue public final ImmutableFormReleaseValueDocument.Builder hash(String hash)
Initializes the value for thehashattribute.- Parameters:
hash- The value for hash- Returns:
thisbuilder for use in a chained invocation
-
bodyType
@CanIgnoreReturnValue public final ImmutableFormReleaseValueDocument.Builder bodyType(DialobDocument.DocumentType bodyType)
Initializes the value for thebodyTypeattribute.- Parameters:
bodyType- The value for bodyType- Returns:
thisbuilder for use in a chained invocation
-
description
@CanIgnoreReturnValue public final ImmutableFormReleaseValueDocument.Builder description(@Nullable String description)
Initializes the value for thedescriptionattribute.- Parameters:
description- The value for description (can benull)- Returns:
thisbuilder for use in a chained invocation
-
commands
@CanIgnoreReturnValue public final ImmutableFormReleaseValueDocument.Builder commands(String commands)
Initializes the value for thecommandsattribute.- Parameters:
commands- The value for commands- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableFormReleaseValueDocument build()
Builds a newImmutableFormReleaseValueDocument.- Returns:
- An immutable instance of FormReleaseValueDocument
- Throws:
IllegalStateException- if any required attributes are missing
-
-