Package io.dialob.client.api
Class ImmutableComposerReleaseState.Builder
- java.lang.Object
-
- io.dialob.client.api.ImmutableComposerReleaseState.Builder
-
- Enclosing class:
- ImmutableComposerReleaseState
@NotThreadSafe public static final class ImmutableComposerReleaseState.Builder extends Object
Builds instances of typeImmutableComposerReleaseState. 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 ImmutableComposerReleaseStatebuild()Builds a newImmutableComposerReleaseState.ImmutableComposerReleaseState.Buildercontent(String content)Initializes the value for thecontentattribute.ImmutableComposerReleaseState.Builderdescription(String description)Initializes the value for thedescriptionattribute.ImmutableComposerReleaseState.Builderfrom(DialobComposer.ComposerReleaseState instance)Fill a builder with attribute values from the providedComposerReleaseStateinstance.ImmutableComposerReleaseState.Builderhash(String hash)Initializes the value for thehashattribute.ImmutableComposerReleaseState.Builderid(String id)Initializes the value for theidattribute.ImmutableComposerReleaseState.Buildername(String name)Initializes the value for thenameattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableComposerReleaseState.Builder from(DialobComposer.ComposerReleaseState instance)
Fill a builder with attribute values from the providedComposerReleaseStateinstance. 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 ImmutableComposerReleaseState.Builder id(String id)
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
name
@CanIgnoreReturnValue public final ImmutableComposerReleaseState.Builder name(String name)
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
description
@CanIgnoreReturnValue public final ImmutableComposerReleaseState.Builder description(String description)
Initializes the value for thedescriptionattribute.- Parameters:
description- The value for description- Returns:
thisbuilder for use in a chained invocation
-
hash
@CanIgnoreReturnValue public final ImmutableComposerReleaseState.Builder hash(String hash)
Initializes the value for thehashattribute.- Parameters:
hash- The value for hash- Returns:
thisbuilder for use in a chained invocation
-
content
@CanIgnoreReturnValue public final ImmutableComposerReleaseState.Builder content(String content)
Initializes the value for thecontentattribute.- Parameters:
content- The value for content- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableComposerReleaseState build()
Builds a newImmutableComposerReleaseState.- Returns:
- An immutable instance of ComposerReleaseState
- Throws:
IllegalStateException- if any required attributes are missing
-
-