Class ExternalMultiSelectMenu
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.ExternalMultiSelectMenu
- All Implemented Interfaces:
BlockElement,ExternalMultiSelectMenuIF,HasActionId
@Generated(from="ExternalMultiSelectMenuIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ExternalMultiSelectMenu
extends Object
implements ExternalMultiSelectMenuIF
Immutable implementation of
ExternalMultiSelectMenuIF.
Use the builder to create immutable instances:
ExternalMultiSelectMenu.builder().
Use the static factory method to create immutable instances:
ExternalMultiSelectMenu.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeExternalMultiSelectMenu. -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.ExternalMultiSelectMenuIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forExternalMultiSelectMenu.static ExternalMultiSelectMenucopyOf(ExternalMultiSelectMenuIF instance) Creates an immutable copy of aExternalMultiSelectMenuIFvalue.booleanThis instance is equal to all instances ofExternalMultiSelectMenuthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,placeholder,actionId,minQueryLength,initialOptions,confirmationDialog.static ExternalMultiSelectMenuConstruct a new immutableExternalMultiSelectMenuinstance.toString()Prints the immutable valueExternalMultiSelectMenuwith attribute values.final ExternalMultiSelectMenuwithActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.final ExternalMultiSelectMenuCopy the current immutable object by setting a present value for the optionalconfirmationDialogattribute.final ExternalMultiSelectMenuwithConfirmationDialog(Optional<? extends ConfirmationDialog> optional) Copy the current immutable object by setting an optional value for theconfirmationDialogattribute.final ExternalMultiSelectMenuwithInitialOptions(OptionOrOptionGroup... elements) Copy the current immutable object with elements that replace the content ofinitialOptions.final ExternalMultiSelectMenuwithInitialOptions(Iterable<? extends OptionOrOptionGroup> elements) Copy the current immutable object with elements that replace the content ofinitialOptions.final ExternalMultiSelectMenuwithMinQueryLength(Integer value) Copy the current immutable object by setting a present value for the optionalminQueryLengthattribute.final ExternalMultiSelectMenuwithMinQueryLength(Optional<Integer> optional) Copy the current immutable object by setting an optional value for theminQueryLengthattribute.final ExternalMultiSelectMenuwithPlaceholder(Text value) Copy the current immutable object by setting a value for theplaceholderattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceExternalMultiSelectMenuIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getPlaceholder
- Specified by:
getPlaceholderin interfaceExternalMultiSelectMenuIF- Returns:
- The value of the
placeholderattribute
-
getActionId
- Specified by:
getActionIdin interfaceExternalMultiSelectMenuIF- Specified by:
getActionIdin interfaceHasActionId- Returns:
- The value of the
actionIdattribute
-
getMinQueryLength
- Specified by:
getMinQueryLengthin interfaceExternalMultiSelectMenuIF- Returns:
- The value of the
minQueryLengthattribute
-
getInitialOptions
- Specified by:
getInitialOptionsin interfaceExternalMultiSelectMenuIF- Returns:
- The value of the
initialOptionsattribute
-
getConfirmationDialog
- Specified by:
getConfirmationDialogin interfaceExternalMultiSelectMenuIF- 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
-
withMinQueryLength
Copy the current immutable object by setting a present value for the optionalminQueryLengthattribute.- Parameters:
value- The value for minQueryLength,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withMinQueryLength
Copy the current immutable object by setting an optional value for theminQueryLengthattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for minQueryLength- Returns:
- A modified copy or
thisif not changed
-
withInitialOptions
Copy the current immutable object with elements that replace the content ofinitialOptions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withInitialOptions
public final ExternalMultiSelectMenu withInitialOptions(Iterable<? extends OptionOrOptionGroup> elements) Copy the current immutable object with elements that replace the content ofinitialOptions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of initialOptions 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 ExternalMultiSelectMenu 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 ofExternalMultiSelectMenuthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,placeholder,actionId,minQueryLength,initialOptions,confirmationDialog. -
toString
Prints the immutable valueExternalMultiSelectMenuwith attribute values. -
of
Construct a new immutableExternalMultiSelectMenuinstance.- Parameters:
placeholder- The value for theplaceholderattributeactionId- The value for theactionIdattribute- Returns:
- An immutable ExternalMultiSelectMenu instance
-
copyOf
Creates an immutable copy of aExternalMultiSelectMenuIFvalue. 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 ExternalMultiSelectMenu instance
-
builder
Creates a builder forExternalMultiSelectMenu.ExternalMultiSelectMenu.builder() .setPlaceholder(com.hubspot.slack.client.models.blocks.objects.Text) // requiredplaceholder.setActionId(String) // requiredactionId.setMinQueryLength(Optional<Integer>) // optionalminQueryLength.addInitialOptions|addAllInitialOptions(com.hubspot.slack.client.models.blocks.objects.OptionOrOptionGroup) //initialOptionselements .setConfirmationDialog(Optional<com.hubspot.slack.client.models.blocks.objects.ConfirmationDialog>) // optionalconfirmationDialog.build();- Returns:
- A new ExternalMultiSelectMenu builder
-