Modifier and Type | Method and Description |
---|---|
Stack |
build()
Builds a new
Stack . |
Stack.Builder |
description(String description)
Initializes the value for the
description attribute. |
Stack.Builder |
from(Stack instance)
Fill a builder with attribute values from the provided
Stack instance. |
Stack.Builder |
id(String id)
Initializes the value for the
id attribute. |
Stack.Builder |
name(String name)
Initializes the value for the
name attribute. |
public final Stack.Builder from(Stack instance)
Stack
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 Stack.Builder description(String description)
description
attribute.description
- The value for descriptionthis
builder for use in a chained invocationpublic final Stack.Builder id(String id)
id
attribute.id
- The value for idthis
builder for use in a chained invocationpublic final Stack.Builder name(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic Stack build()
Stack
.IllegalStateException
- if any required attributes are missingCopyright © 2016 Pivotal Software, Inc.. All rights reserved.