@NotThreadSafe public static final class ConfirmationDialog.Builder extends Object
ConfirmationDialog.
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 |
|---|---|
ConfirmationDialog |
build()
Builds a new
ConfirmationDialog. |
ConfirmationDialog.Builder |
from(ConfirmationDialogIF instance)
Fill a builder with attribute values from the provided
ConfirmationDialogIF instance. |
ConfirmationDialog.Builder |
setConfirmButtonText(Text confirmButtonText)
Initializes the value for the
confirmButtonText attribute. |
ConfirmationDialog.Builder |
setDenyButtonText(Text denyButtonText)
Initializes the value for the
denyButtonText attribute. |
ConfirmationDialog.Builder |
setText(Text text)
Initializes the value for the
text attribute. |
ConfirmationDialog.Builder |
setTitle(Text title)
Initializes the value for the
title attribute. |
public final ConfirmationDialog.Builder from(ConfirmationDialogIF instance)
ConfirmationDialogIF 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 ConfirmationDialog.Builder setTitle(Text title)
title attribute.title - The value for titlethis builder for use in a chained invocationpublic final ConfirmationDialog.Builder setText(Text text)
text attribute.text - The value for textthis builder for use in a chained invocationpublic final ConfirmationDialog.Builder setConfirmButtonText(Text confirmButtonText)
confirmButtonText attribute.confirmButtonText - The value for confirmButtonTextthis builder for use in a chained invocationpublic final ConfirmationDialog.Builder setDenyButtonText(Text denyButtonText)
denyButtonText attribute.denyButtonText - The value for denyButtonTextthis builder for use in a chained invocationpublic ConfirmationDialog build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ConfirmationDialog.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.