@NotThreadSafe public static final class SlackFormOption.Builder extends Object
SlackFormOption.
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 |
|---|---|
SlackFormOption |
build()
Builds a new
SlackFormOption. |
SlackFormOption.Builder |
from(SlackFormOptionIF instance)
Fill a builder with attribute values from the provided
SlackFormOptionIF instance. |
SlackFormOption.Builder |
setLabel(String label)
Initializes the value for the
label attribute. |
SlackFormOption.Builder |
setValue(String value)
Initializes the value for the
value attribute. |
public final SlackFormOption.Builder from(SlackFormOptionIF instance)
SlackFormOptionIF 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 SlackFormOption.Builder setLabel(String label)
label attribute.label - The value for labelthis builder for use in a chained invocationpublic final SlackFormOption.Builder setValue(String value)
value attribute.value - The value for valuethis builder for use in a chained invocationpublic SlackFormOption build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
SlackFormOption.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.