Class Confirm
java.lang.Object
com.hubspot.slack.client.models.actions.Confirm
- All Implemented Interfaces:
ConfirmIF
@Generated(from="ConfirmIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class Confirm
extends Object
implements ConfirmIF
Immutable implementation of
ConfirmIF.
Use the builder to create immutable instances:
Confirm.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Confirm.Builderbuilder()Creates a builder forConfirm.static ConfirmCreates an immutable copy of aConfirmIFvalue.booleanThis instance is equal to all instances ofConfirmthat have equal attribute values.getText()getTitle()inthashCode()Computes a hash code from attributes:title,text,okText,dismissText.toString()Prints the immutable valueConfirmwith attribute values.final ConfirmwithDismissText(String value) Copy the current immutable object by setting a value for thedismissTextattribute.final ConfirmwithOkText(String value) Copy the current immutable object by setting a value for theokTextattribute.final ConfirmCopy the current immutable object by setting a value for thetextattribute.final ConfirmCopy the current immutable object by setting a value for thetitleattribute.
-
Method Details
-
getTitle
-
getText
-
getOkText
-
getDismissText
- Specified by:
getDismissTextin interfaceConfirmIF- Returns:
- The value of the
dismissTextattribute
-
withTitle
Copy the current immutable object by setting a value for thetitleattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for title- Returns:
- A modified copy or the
thisobject
-
withText
Copy the current immutable object by setting a value for thetextattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for text- Returns:
- A modified copy or the
thisobject
-
withOkText
Copy the current immutable object by setting a value for theokTextattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for okText- Returns:
- A modified copy or the
thisobject
-
withDismissText
Copy the current immutable object by setting a value for thedismissTextattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for dismissText- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofConfirmthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:title,text,okText,dismissText. -
toString
Prints the immutable valueConfirmwith attribute values. -
copyOf
Creates an immutable copy of aConfirmIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable Confirm instance
-
builder
Creates a builder forConfirm.Confirm.builder() .setTitle(String) // requiredtitle.setText(String) // requiredtext.setOkText(String) // requiredokText.setDismissText(String) // requireddismissText.build();- Returns:
- A new Confirm builder
-