Package io.dialob.client.api
Class ImmutableFormRevisionEntryDocument.Builder
- java.lang.Object
-
- io.dialob.client.api.ImmutableFormRevisionEntryDocument.Builder
-
- Enclosing class:
- ImmutableFormRevisionEntryDocument
@NotThreadSafe public static final class ImmutableFormRevisionEntryDocument.Builder extends Object
Builds instances of typeImmutableFormRevisionEntryDocument. 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
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableFormRevisionEntryDocument.Builder from(DialobDocument.FormRevisionEntryDocument instance)
Fill a builder with attribute values from the providedFormRevisionEntryDocumentinstance. 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
-
id
@CanIgnoreReturnValue public final ImmutableFormRevisionEntryDocument.Builder id(@Nullable String id)
Initializes the value for theidattribute.- Parameters:
id- The value for id (can benull)- Returns:
thisbuilder for use in a chained invocation
-
revisionName
@CanIgnoreReturnValue public final ImmutableFormRevisionEntryDocument.Builder revisionName(String revisionName)
Initializes the value for therevisionNameattribute.- Parameters:
revisionName- The value for revisionName- Returns:
thisbuilder for use in a chained invocation
-
formId
@CanIgnoreReturnValue public final ImmutableFormRevisionEntryDocument.Builder formId(String formId)
Initializes the value for theformIdattribute.- Parameters:
formId- The value for formId- Returns:
thisbuilder for use in a chained invocation
-
created
@CanIgnoreReturnValue public final ImmutableFormRevisionEntryDocument.Builder created(LocalDateTime created)
Initializes the value for thecreatedattribute.- Parameters:
created- The value for created- Returns:
thisbuilder for use in a chained invocation
-
updated
@CanIgnoreReturnValue public final ImmutableFormRevisionEntryDocument.Builder updated(LocalDateTime updated)
Initializes the value for theupdatedattribute.- Parameters:
updated- The value for updated- Returns:
thisbuilder for use in a chained invocation
-
description
@CanIgnoreReturnValue public final ImmutableFormRevisionEntryDocument.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
-
build
public ImmutableFormRevisionEntryDocument build()
Builds a newImmutableFormRevisionEntryDocument.- Returns:
- An immutable instance of FormRevisionEntryDocument
- Throws:
IllegalStateException- if any required attributes are missing
-
-