Class DialogOpenParams
java.lang.Object
com.hubspot.slack.client.methods.params.dialog.DialogOpenParams
- All Implemented Interfaces:
DialogOpenParamsIF
@Generated(from="DialogOpenParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class DialogOpenParams
extends Object
implements DialogOpenParamsIF
Immutable implementation of
DialogOpenParamsIF.
Use the builder to create immutable instances:
DialogOpenParams.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DialogOpenParams.Builderbuilder()Creates a builder forDialogOpenParams.static DialogOpenParamscopyOf(DialogOpenParamsIF instance) Creates an immutable copy of aDialogOpenParamsIFvalue.booleanThis instance is equal to all instances ofDialogOpenParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:triggerId,dialog.toString()Prints the immutable valueDialogOpenParamswith attribute values.final DialogOpenParamswithDialog(SlackDialog value) Copy the current immutable object by setting a value for thedialogattribute.final DialogOpenParamswithTriggerId(String value) Copy the current immutable object by setting a value for thetriggerIdattribute.
-
Method Details
-
getTriggerId
- Specified by:
getTriggerIdin interfaceDialogOpenParamsIF- Returns:
- The value of the
triggerIdattribute
-
getDialog
- Specified by:
getDialogin interfaceDialogOpenParamsIF- Returns:
- The value of the
dialogattribute
-
withTriggerId
Copy the current immutable object by setting a value for thetriggerIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for triggerId- Returns:
- A modified copy or the
thisobject
-
withDialog
Copy the current immutable object by setting a value for thedialogattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for dialog- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofDialogOpenParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:triggerId,dialog. -
toString
Prints the immutable valueDialogOpenParamswith attribute values. -
copyOf
Creates an immutable copy of aDialogOpenParamsIFvalue. 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 DialogOpenParams instance
-
builder
Creates a builder forDialogOpenParams.DialogOpenParams.builder() .setTriggerId(String) // requiredtriggerId.setDialog(com.hubspot.slack.client.models.dialog.SlackDialog) // requireddialog.build();- Returns:
- A new DialogOpenParams builder
-