Package io.dialob.client.api
Class ImmutableFormReleaseDocument.Builder
- java.lang.Object
-
- io.dialob.client.api.ImmutableFormReleaseDocument.Builder
-
- Enclosing class:
- ImmutableFormReleaseDocument
@NotThreadSafe public static final class ImmutableFormReleaseDocument.Builder extends Object
Builds instances of typeImmutableFormReleaseDocument. 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 ImmutableFormReleaseDocument.Builder from(DialobDocument instance)
Fill a builder with attribute values from the providedio.dialob.client.api.DialobDocumentinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableFormReleaseDocument.Builder from(DialobDocument.FormReleaseDocument instance)
Fill a builder with attribute values from the providedio.dialob.client.api.DialobDocument.FormReleaseDocumentinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
id
@CanIgnoreReturnValue public final ImmutableFormReleaseDocument.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
-
version
@CanIgnoreReturnValue public final ImmutableFormReleaseDocument.Builder version(@Nullable String version)
Initializes the value for theversionattribute.- Parameters:
version- The value for version (can benull)- Returns:
thisbuilder for use in a chained invocation
-
description
@CanIgnoreReturnValue public final ImmutableFormReleaseDocument.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
-
name
@CanIgnoreReturnValue public final ImmutableFormReleaseDocument.Builder name(String name)
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
created
@CanIgnoreReturnValue public final ImmutableFormReleaseDocument.Builder created(LocalDateTime created)
Initializes the value for thecreatedattribute.- Parameters:
created- The value for created- Returns:
thisbuilder for use in a chained invocation
-
addValues
@CanIgnoreReturnValue public final ImmutableFormReleaseDocument.Builder addValues(DialobDocument.FormReleaseValueDocument element)
Adds one element tovalueslist.- Parameters:
element- A values element- Returns:
thisbuilder for use in a chained invocation
-
addValues
@CanIgnoreReturnValue public final ImmutableFormReleaseDocument.Builder addValues(DialobDocument.FormReleaseValueDocument... elements)
Adds elements tovalueslist.- Parameters:
elements- An array of values elements- Returns:
thisbuilder for use in a chained invocation
-
values
@CanIgnoreReturnValue public final ImmutableFormReleaseDocument.Builder values(Iterable<? extends DialobDocument.FormReleaseValueDocument> elements)
Sets or replaces all elements forvalueslist.- Parameters:
elements- An iterable of values elements- Returns:
thisbuilder for use in a chained invocation
-
addAllValues
@CanIgnoreReturnValue public final ImmutableFormReleaseDocument.Builder addAllValues(Iterable<? extends DialobDocument.FormReleaseValueDocument> elements)
Adds elements tovalueslist.- Parameters:
elements- An iterable of values elements- Returns:
thisbuilder for use in a chained invocation
-
type
@CanIgnoreReturnValue public final ImmutableFormReleaseDocument.Builder type(DialobDocument.DocumentType type)
Initializes the value for thetypeattribute.If not set, this attribute will have a default value as returned by the initializer of
type.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableFormReleaseDocument build()
Builds a newImmutableFormReleaseDocument.- Returns:
- An immutable instance of FormReleaseDocument
- Throws:
IllegalStateException- if any required attributes are missing
-
-