Package com.io7m.coffeepick.api
Class CoffeePickTaskEventFailed.Builder
java.lang.Object
com.io7m.coffeepick.api.CoffeePickTaskEventFailed.Builder
- Enclosing class:
- CoffeePickTaskEventFailed
public static final class CoffeePickTaskEventFailed.Builder
extends java.lang.Object
Builds instances of type
CoffeePickTaskEventFailed.
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 CoffeePickTaskEventFailedbuild()Builds a newCoffeePickTaskEventFailed.CoffeePickTaskEventFailed.Builderfrom(CoffeePickTaskEventFailedType instance)Fill a builder with attribute values from the providedcom.io7m.coffeepick.api.CoffeePickTaskEventFailedTypeinstance.CoffeePickTaskEventFailed.Builderfrom(CoffeePickTaskEventType instance)Fill a builder with attribute values from the providedcom.io7m.coffeepick.api.CoffeePickTaskEventTypeinstance.CoffeePickTaskEventFailed.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.CoffeePickTaskEventFailedTypeinstance.- 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.CoffeePickTaskEventTypeinstance.- 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 newCoffeePickTaskEventFailed.- Returns:
- An immutable instance of CoffeePickTaskEventFailed
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-