public static final class BuildpackEntity.Builder extends Object
BuildpackEntity
.
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.
Modifier and Type | Method and Description |
---|---|
BuildpackEntity |
build()
Builds a new
BuildpackEntity . |
BuildpackEntity.Builder |
enabled(Boolean enabled)
Initializes the value for the
enabled attribute. |
BuildpackEntity.Builder |
filename(String filename)
Initializes the value for the
filename attribute. |
BuildpackEntity.Builder |
from(BuildpackEntity instance)
Fill a builder with attribute values from the provided
BuildpackEntity instance. |
BuildpackEntity.Builder |
locked(Boolean locked)
Initializes the value for the
locked attribute. |
BuildpackEntity.Builder |
name(String name)
Initializes the value for the
name attribute. |
BuildpackEntity.Builder |
position(Integer position)
Initializes the value for the
position attribute. |
public final BuildpackEntity.Builder from(BuildpackEntity instance)
BuildpackEntity
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 BuildpackEntity.Builder enabled(Boolean enabled)
enabled
attribute.enabled
- The value for enabled (can be null
)this
builder for use in a chained invocationpublic final BuildpackEntity.Builder filename(String filename)
filename
attribute.filename
- The value for filename (can be null
)this
builder for use in a chained invocationpublic final BuildpackEntity.Builder locked(Boolean locked)
locked
attribute.locked
- The value for locked (can be null
)this
builder for use in a chained invocationpublic final BuildpackEntity.Builder name(String name)
name
attribute.name
- The value for name (can be null
)this
builder for use in a chained invocationpublic final BuildpackEntity.Builder position(Integer position)
position
attribute.position
- The value for position (can be null
)this
builder for use in a chained invocationpublic BuildpackEntity build()
BuildpackEntity
.IllegalStateException
- if any required attributes are missingCopyright © 2018 Pivotal Software, Inc.. All rights reserved.