Class ConversationsMultiSelectMenu
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.ConversationsMultiSelectMenu
- All Implemented Interfaces:
BlockElement,ConversationsMultiSelectMenuIF,HasActionId
@Generated(from="ConversationsMultiSelectMenuIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationsMultiSelectMenu
extends Object
implements ConversationsMultiSelectMenuIF
Immutable implementation of
ConversationsMultiSelectMenuIF.
Use the builder to create immutable instances:
ConversationsMultiSelectMenu.builder().
Use the static factory method to create immutable instances:
ConversationsMultiSelectMenu.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationsMultiSelectMenu. -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.ConversationsMultiSelectMenuIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationsMultiSelectMenu.static ConversationsMultiSelectMenucopyOf(ConversationsMultiSelectMenuIF instance) Creates an immutable copy of aConversationsMultiSelectMenuIFvalue.booleanThis instance is equal to all instances ofConversationsMultiSelectMenuthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,placeholder,actionId,initialChannelIds,confirmationDialog.static ConversationsMultiSelectMenuConstruct a new immutableConversationsMultiSelectMenuinstance.toString()Prints the immutable valueConversationsMultiSelectMenuwith attribute values.withActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.Copy the current immutable object by setting a present value for the optionalconfirmationDialogattribute.withConfirmationDialog(Optional<? extends ConfirmationDialog> optional) Copy the current immutable object by setting an optional value for theconfirmationDialogattribute.withInitialChannelIds(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofinitialChannelIds.withInitialChannelIds(String... elements) Copy the current immutable object with elements that replace the content ofinitialChannelIds.withPlaceholder(Text value) Copy the current immutable object by setting a value for theplaceholderattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceConversationsMultiSelectMenuIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getPlaceholder
- Specified by:
getPlaceholderin interfaceConversationsMultiSelectMenuIF- Returns:
- The value of the
placeholderattribute
-
getActionId
- Specified by:
getActionIdin interfaceConversationsMultiSelectMenuIF- Specified by:
getActionIdin interfaceHasActionId- Returns:
- The value of the
actionIdattribute
-
getInitialChannelIds
- Specified by:
getInitialChannelIdsin interfaceConversationsMultiSelectMenuIF- Returns:
- The value of the
initialChannelIdsattribute
-
getConfirmationDialog
- Specified by:
getConfirmationDialogin interfaceConversationsMultiSelectMenuIF- 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
-
withInitialChannelIds
Copy the current immutable object with elements that replace the content ofinitialChannelIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withInitialChannelIds
Copy the current immutable object with elements that replace the content ofinitialChannelIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of initialChannelIds elements to set- Returns:
- A modified copy or
thisif not changed
-
withConfirmationDialog
public final ConversationsMultiSelectMenu withConfirmationDialog(@Nullable ConfirmationDialog value) 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 ConversationsMultiSelectMenu 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 ofConversationsMultiSelectMenuthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,placeholder,actionId,initialChannelIds,confirmationDialog. -
toString
Prints the immutable valueConversationsMultiSelectMenuwith attribute values. -
of
Construct a new immutableConversationsMultiSelectMenuinstance.- Parameters:
placeholder- The value for theplaceholderattributeactionId- The value for theactionIdattribute- Returns:
- An immutable ConversationsMultiSelectMenu instance
-
copyOf
Creates an immutable copy of aConversationsMultiSelectMenuIFvalue. 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 ConversationsMultiSelectMenu instance
-
builder
Creates a builder forConversationsMultiSelectMenu.ConversationsMultiSelectMenu.builder() .setPlaceholder(com.hubspot.slack.client.models.blocks.objects.Text) // requiredplaceholder.setActionId(String) // requiredactionId.addInitialChannelIds|addAllInitialChannelIds(String) //initialChannelIdselements .setConfirmationDialog(Optional<com.hubspot.slack.client.models.blocks.objects.ConfirmationDialog>) // optionalconfirmationDialog.build();- Returns:
- A new ConversationsMultiSelectMenu builder
-