Package io.dialob.client.api
Class ImmutableCreateComposerRelease.Builder
- java.lang.Object
-
- io.dialob.client.api.ImmutableCreateComposerRelease.Builder
-
- Enclosing class:
- ImmutableCreateComposerRelease
@NotThreadSafe public static final class ImmutableCreateComposerRelease.Builder extends Object
Builds instances of typeImmutableCreateComposerRelease. 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 ImmutableCreateComposerReleasebuild()Builds a newImmutableCreateComposerRelease.ImmutableCreateComposerRelease.Builderdescription(String description)Initializes the value for thedescriptionattribute.ImmutableCreateComposerRelease.Builderfrom(DialobComposer.CreateComposerRelease instance)Fill a builder with attribute values from the providedCreateComposerReleaseinstance.ImmutableCreateComposerRelease.Buildername(String name)Initializes the value for thenameattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableCreateComposerRelease.Builder from(DialobComposer.CreateComposerRelease instance)
Fill a builder with attribute values from the providedCreateComposerReleaseinstance. 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
-
name
@CanIgnoreReturnValue public final ImmutableCreateComposerRelease.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 ImmutableCreateComposerRelease.Builder description(String description)
Initializes the value for thedescriptionattribute.- Parameters:
description- The value for description- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableCreateComposerRelease build()
Builds a newImmutableCreateComposerRelease.- Returns:
- An immutable instance of CreateComposerRelease
- Throws:
IllegalStateException- if any required attributes are missing
-
-