@NotThreadSafe public static final class DialogOpenParams.Builder extends Object
DialogOpenParams.
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 |
|---|---|
DialogOpenParams |
build()
Builds a new
DialogOpenParams. |
DialogOpenParams.Builder |
from(DialogOpenParamsIF instance)
Fill a builder with attribute values from the provided
DialogOpenParamsIF instance. |
DialogOpenParams.Builder |
setDialog(SlackDialog dialog)
Initializes the value for the
dialog attribute. |
DialogOpenParams.Builder |
setTriggerId(String triggerId)
Initializes the value for the
triggerId attribute. |
public final DialogOpenParams.Builder from(DialogOpenParamsIF instance)
DialogOpenParamsIF 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 DialogOpenParams.Builder setTriggerId(String triggerId)
triggerId attribute.triggerId - The value for triggerIdthis builder for use in a chained invocationpublic final DialogOpenParams.Builder setDialog(SlackDialog dialog)
dialog attribute.dialog - The value for dialogthis builder for use in a chained invocationpublic DialogOpenParams build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
DialogOpenParams.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.