| Modifier and Type | Method and Description |
|---|---|
Lifecycle |
build()
Builds a new
Lifecycle. |
Lifecycle.Builder |
data(Data data)
Initializes the value for the
data attribute. |
Lifecycle.Builder |
from(Lifecycle instance)
Fill a builder with attribute values from the provided
Lifecycle instance. |
Lifecycle.Builder |
type(Type type)
Initializes the value for the
type attribute. |
public final Lifecycle.Builder from(Lifecycle instance)
Lifecycle instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Lifecycle.Builder data(Data data)
data attribute.data - The value for data (can be null)this builder for use in a chained invocationpublic final Lifecycle.Builder type(Type type)
type attribute.type - The value for type (can be null)this builder for use in a chained invocationpublic Lifecycle build()
Lifecycle.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.