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.ObjectBuilds instances of typeCoffeePickTaskEventFailed. 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 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 Detail
-
from
public final CoffeePickTaskEventFailed.Builder from(CoffeePickTaskEventFailedType instance)
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
public final CoffeePickTaskEventFailed.Builder from(CoffeePickTaskEventType instance)
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
public final CoffeePickTaskEventFailed.Builder setDescription(java.lang.String description)
Initializes the value for thedescriptionattribute.- Parameters:
description- The value for description- Returns:
thisbuilder for use in a chained invocation
-
build
public CoffeePickTaskEventFailed build()
Builds a newCoffeePickTaskEventFailed.- Returns:
- An immutable instance of CoffeePickTaskEventFailed
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-
-