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