Class ConversationSelectMenu
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.ConversationSelectMenu
- All Implemented Interfaces:
BlockElement,ConversationSelectMenuIF,HasActionId
@Generated(from="ConversationSelectMenuIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationSelectMenu
extends Object
implements ConversationSelectMenuIF
Immutable implementation of
ConversationSelectMenuIF.
Use the builder to create immutable instances:
ConversationSelectMenu.builder().
Use the static factory method to create immutable instances:
ConversationSelectMenu.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationSelectMenu. -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.ConversationSelectMenuIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationSelectMenu.static ConversationSelectMenucopyOf(ConversationSelectMenuIF instance) Creates an immutable copy of aConversationSelectMenuIFvalue.booleanThis instance is equal to all instances ofConversationSelectMenuthat have equal attribute values.booleanbooleangetType()inthashCode()Computes a hash code from attributes:type,placeholder,actionId,initialConversationId,confirmationDialog,responseUrlEnabled,defaultToCurrentConversation.static ConversationSelectMenuConstruct a new immutableConversationSelectMenuinstance.toString()Prints the immutable valueConversationSelectMenuwith attribute values.final ConversationSelectMenuwithActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.final ConversationSelectMenuCopy the current immutable object by setting a present value for the optionalconfirmationDialogattribute.final ConversationSelectMenuwithConfirmationDialog(Optional<? extends ConfirmationDialog> optional) Copy the current immutable object by setting an optional value for theconfirmationDialogattribute.final ConversationSelectMenuwithInitialConversationId(String value) Copy the current immutable object by setting a present value for the optionalinitialConversationIdattribute.final ConversationSelectMenuwithInitialConversationId(Optional<String> optional) Copy the current immutable object by setting an optional value for theinitialConversationIdattribute.final ConversationSelectMenuwithPlaceholder(Text value) Copy the current immutable object by setting a value for theplaceholderattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceConversationSelectMenuIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getPlaceholder
- Specified by:
getPlaceholderin interfaceConversationSelectMenuIF- Returns:
- The value of the
placeholderattribute
-
getActionId
- Specified by:
getActionIdin interfaceConversationSelectMenuIF- Specified by:
getActionIdin interfaceHasActionId- Returns:
- The value of the
actionIdattribute
-
getInitialConversationId
- Specified by:
getInitialConversationIdin interfaceConversationSelectMenuIF- Returns:
- The value of the
initialConversationIdattribute
-
getConfirmationDialog
- Specified by:
getConfirmationDialogin interfaceConversationSelectMenuIF- Returns:
- The value of the
confirmationDialogattribute
-
getResponseUrlEnabled
public boolean getResponseUrlEnabled()- Specified by:
getResponseUrlEnabledin interfaceConversationSelectMenuIF- Returns:
- The computed-at-construction value of the
responseUrlEnabledattribute
-
getDefaultToCurrentConversation
public boolean getDefaultToCurrentConversation()- Specified by:
getDefaultToCurrentConversationin interfaceConversationSelectMenuIF- Returns:
- The computed-at-construction value of the
defaultToCurrentConversationattribute
-
withPlaceholder
Copy the current immutable object by setting a value for theplaceholderattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for placeholder- Returns:
- A modified copy or the
thisobject
-
withActionId
Copy the current immutable object by setting a value for theactionIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for actionId- Returns:
- A modified copy or the
thisobject
-
withInitialConversationId
Copy the current immutable object by setting a present value for the optionalinitialConversationIdattribute.- Parameters:
value- The value for initialConversationId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withInitialConversationId
Copy the current immutable object by setting an optional value for theinitialConversationIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for initialConversationId- Returns:
- A modified copy or
thisif not changed
-
withConfirmationDialog
Copy the current immutable object by setting a present value for the optionalconfirmationDialogattribute.- Parameters:
value- The value for confirmationDialog,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withConfirmationDialog
public final ConversationSelectMenu withConfirmationDialog(Optional<? extends ConfirmationDialog> optional) Copy the current immutable object by setting an optional value for theconfirmationDialogattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for confirmationDialog- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofConversationSelectMenuthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,placeholder,actionId,initialConversationId,confirmationDialog,responseUrlEnabled,defaultToCurrentConversation. -
toString
Prints the immutable valueConversationSelectMenuwith attribute values. -
of
Construct a new immutableConversationSelectMenuinstance.- Parameters:
placeholder- The value for theplaceholderattributeactionId- The value for theactionIdattribute- Returns:
- An immutable ConversationSelectMenu instance
-
copyOf
Creates an immutable copy of aConversationSelectMenuIFvalue. 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 ConversationSelectMenu instance
-
builder
Creates a builder forConversationSelectMenu.ConversationSelectMenu.builder() .setPlaceholder(com.hubspot.slack.client.models.blocks.objects.Text) // requiredplaceholder.setActionId(String) // requiredactionId.setInitialConversationId(Optional<String>) // optionalinitialConversationId.setConfirmationDialog(Optional<com.hubspot.slack.client.models.blocks.objects.ConfirmationDialog>) // optionalconfirmationDialog.build();- Returns:
- A new ConversationSelectMenu builder
-