Class ConfirmationDialog.Builder
java.lang.Object
com.hubspot.slack.client.models.blocks.objects.ConfirmationDialog.Builder
- Enclosing class:
ConfirmationDialog
@Generated(from="ConfirmationDialogIF",
generator="Immutables")
@NotThreadSafe
public static final class ConfirmationDialog.Builder
extends Object
Builds instances of type
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newConfirmationDialog.from(ConfirmationDialogIF instance) Fill a builder with attribute values from the providedConfirmationDialogIFinstance.setConfirmButtonText(Text confirmButtonText) Initializes the value for theconfirmButtonTextattribute.setDenyButtonText(Text denyButtonText) Initializes the value for thedenyButtonTextattribute.Initializes the optional valuestyleto style.Initializes the optional valuestyleto style.Initializes the value for thetextattribute.Initializes the value for thetitleattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedConfirmationDialogIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setTitle
Initializes the value for thetitleattribute.- Parameters:
title- The value for title- Returns:
thisbuilder for use in a chained invocation
-
setText
Initializes the value for thetextattribute.- Parameters:
text- The value for text- Returns:
thisbuilder for use in a chained invocation
-
setConfirmButtonText
Initializes the value for theconfirmButtonTextattribute.- Parameters:
confirmButtonText- The value for confirmButtonText- Returns:
thisbuilder for use in a chained invocation
-
setDenyButtonText
Initializes the value for thedenyButtonTextattribute.- Parameters:
denyButtonText- The value for denyButtonText- Returns:
thisbuilder for use in a chained invocation
-
setStyle
Initializes the optional valuestyleto style.- Parameters:
style- The value for style,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setStyle
Initializes the optional valuestyleto style.- Parameters:
style- The value for style- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newConfirmationDialog.- Returns:
- An immutable instance of ConfirmationDialog
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-