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 CoffeePickTaskEventFailed
build()
Builds a newCoffeePickTaskEventFailed
.CoffeePickTaskEventFailed.Builder
from(CoffeePickTaskEventFailedType instance)
Fill a builder with attribute values from the providedcom.io7m.coffeepick.api.CoffeePickTaskEventFailedType
instance.CoffeePickTaskEventFailed.Builder
from(CoffeePickTaskEventType instance)
Fill a builder with attribute values from the providedcom.io7m.coffeepick.api.CoffeePickTaskEventType
instance.CoffeePickTaskEventFailed.Builder
setDescription(java.lang.String description)
Initializes the value for thedescription
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.coffeepick.api.CoffeePickTaskEventFailedType
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.io7m.coffeepick.api.CoffeePickTaskEventType
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setDescription
Initializes the value for thedescription
attribute.- Parameters:
description
- The value for description- Returns:
this
builder 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
-