Package com.io7m.coffeepick.api
Class CoffeePickTaskEventStarted.Builder
java.lang.Object
com.io7m.coffeepick.api.CoffeePickTaskEventStarted.Builder
- Enclosing class:
- CoffeePickTaskEventStarted
public static final class CoffeePickTaskEventStarted.Builder
extends java.lang.Object
Builds instances of type
CoffeePickTaskEventStarted.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and Type Method Description CoffeePickTaskEventStartedbuild()Builds a newCoffeePickTaskEventStarted.CoffeePickTaskEventStarted.Builderfrom(CoffeePickTaskEventStartedType instance)Fill a builder with attribute values from the providedcom.io7m.coffeepick.api.CoffeePickTaskEventStartedTypeinstance.CoffeePickTaskEventStarted.Builderfrom(CoffeePickTaskEventType instance)Fill a builder with attribute values from the providedcom.io7m.coffeepick.api.CoffeePickTaskEventTypeinstance.CoffeePickTaskEventStarted.BuildersetDescription(java.lang.String description)Initializes the value for thedescriptionattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.coffeepick.api.CoffeePickTaskEventTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.io7m.coffeepick.api.CoffeePickTaskEventStartedTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setDescription
Initializes the value for thedescriptionattribute.- Parameters:
description- The value for description- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newCoffeePickTaskEventStarted.- Returns:
- An immutable instance of CoffeePickTaskEventStarted
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-