Class ChannelsMultiSelectMenu
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.ChannelsMultiSelectMenu
- All Implemented Interfaces:
BlockElement,ChannelsMultiSelectMenuIF,HasActionId
@Generated(from="ChannelsMultiSelectMenuIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChannelsMultiSelectMenu
extends Object
implements ChannelsMultiSelectMenuIF
Immutable implementation of
ChannelsMultiSelectMenuIF.
Use the builder to create immutable instances:
ChannelsMultiSelectMenu.builder().
Use the static factory method to create immutable instances:
ChannelsMultiSelectMenu.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeChannelsMultiSelectMenu. -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.ChannelsMultiSelectMenuIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forChannelsMultiSelectMenu.static ChannelsMultiSelectMenucopyOf(ChannelsMultiSelectMenuIF instance) Creates an immutable copy of aChannelsMultiSelectMenuIFvalue.booleanThis instance is equal to all instances ofChannelsMultiSelectMenuthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,placeholder,actionId,initialConversationIds,confirmationDialog.static ChannelsMultiSelectMenuConstruct a new immutableChannelsMultiSelectMenuinstance.toString()Prints the immutable valueChannelsMultiSelectMenuwith attribute values.final ChannelsMultiSelectMenuwithActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.final ChannelsMultiSelectMenuCopy the current immutable object by setting a present value for the optionalconfirmationDialogattribute.final ChannelsMultiSelectMenuwithConfirmationDialog(Optional<? extends ConfirmationDialog> optional) Copy the current immutable object by setting an optional value for theconfirmationDialogattribute.final ChannelsMultiSelectMenuwithInitialConversationIds(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofinitialConversationIds.final ChannelsMultiSelectMenuwithInitialConversationIds(String... elements) Copy the current immutable object with elements that replace the content ofinitialConversationIds.final ChannelsMultiSelectMenuwithPlaceholder(Text value) Copy the current immutable object by setting a value for theplaceholderattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceChannelsMultiSelectMenuIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getPlaceholder
- Specified by:
getPlaceholderin interfaceChannelsMultiSelectMenuIF- Returns:
- The value of the
placeholderattribute
-
getActionId
- Specified by:
getActionIdin interfaceChannelsMultiSelectMenuIF- Specified by:
getActionIdin interfaceHasActionId- Returns:
- The value of the
actionIdattribute
-
getInitialConversationIds
- Specified by:
getInitialConversationIdsin interfaceChannelsMultiSelectMenuIF- Returns:
- The value of the
initialConversationIdsattribute
-
getConfirmationDialog
- Specified by:
getConfirmationDialogin interfaceChannelsMultiSelectMenuIF- Returns:
- The value of the
confirmationDialogattribute
-
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
-
withInitialConversationIds
Copy the current immutable object with elements that replace the content ofinitialConversationIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withInitialConversationIds
Copy the current immutable object with elements that replace the content ofinitialConversationIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of initialConversationIds elements to set- 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 ChannelsMultiSelectMenu 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 ofChannelsMultiSelectMenuthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,placeholder,actionId,initialConversationIds,confirmationDialog. -
toString
Prints the immutable valueChannelsMultiSelectMenuwith attribute values. -
of
Construct a new immutableChannelsMultiSelectMenuinstance.- Parameters:
placeholder- The value for theplaceholderattributeactionId- The value for theactionIdattribute- Returns:
- An immutable ChannelsMultiSelectMenu instance
-
copyOf
Creates an immutable copy of aChannelsMultiSelectMenuIFvalue. 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 ChannelsMultiSelectMenu instance
-
builder
Creates a builder forChannelsMultiSelectMenu.ChannelsMultiSelectMenu.builder() .setPlaceholder(com.hubspot.slack.client.models.blocks.objects.Text) // requiredplaceholder.setActionId(String) // requiredactionId.addInitialConversationIds|addAllInitialConversationIds(String) //initialConversationIdselements .setConfirmationDialog(Optional<com.hubspot.slack.client.models.blocks.objects.ConfirmationDialog>) // optionalconfirmationDialog.build();- Returns:
- A new ChannelsMultiSelectMenu builder
-