| Modifier and Type | Method and Description |
|---|---|
Prompt |
build()
Builds a new
Prompt. |
Prompt.Builder |
fieldName(String fieldName)
Initializes the value for the
fieldName attribute. |
Prompt.Builder |
fieldType(String fieldType)
Initializes the value for the
fieldType attribute. |
Prompt.Builder |
from(Prompt instance)
Fill a builder with attribute values from the provided
Prompt instance. |
Prompt.Builder |
text(String text)
Initializes the value for the
text attribute. |
public final Prompt.Builder from(Prompt instance)
Prompt 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 Prompt.Builder fieldName(String fieldName)
fieldName attribute.fieldName - The value for fieldName (can be null)this builder for use in a chained invocationpublic final Prompt.Builder fieldType(String fieldType)
fieldType attribute.fieldType - The value for fieldType (can be null)this builder for use in a chained invocationpublic final Prompt.Builder text(String text)
text attribute.text - The value for text (can be null)this builder for use in a chained invocationpublic Prompt build()
Prompt.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.