Class ExternalSelectMenu
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.ExternalSelectMenu
- All Implemented Interfaces:
BlockElement,ExternalSelectMenuIF,HasActionId
@Generated(from="ExternalSelectMenuIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ExternalSelectMenu
extends Object
implements ExternalSelectMenuIF
Immutable implementation of
ExternalSelectMenuIF.
Use the builder to create immutable instances:
ExternalSelectMenu.builder().
Use the static factory method to create immutable instances:
ExternalSelectMenu.of().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.ExternalSelectMenuIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic ExternalSelectMenu.Builderbuilder()Creates a builder forExternalSelectMenu.static ExternalSelectMenucopyOf(ExternalSelectMenuIF instance) Creates an immutable copy of aExternalSelectMenuIFvalue.booleanThis instance is equal to all instances ofExternalSelectMenuthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,placeholder,actionId,initialOption,minQueryLength,confirmationDialog.static ExternalSelectMenuConstruct a new immutableExternalSelectMenuinstance.toString()Prints the immutable valueExternalSelectMenuwith attribute values.final ExternalSelectMenuwithActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.final ExternalSelectMenuCopy the current immutable object by setting a present value for the optionalconfirmationDialogattribute.final ExternalSelectMenuwithConfirmationDialog(Optional<? extends ConfirmationDialog> optional) Copy the current immutable object by setting an optional value for theconfirmationDialogattribute.final ExternalSelectMenuwithInitialOption(Option value) Copy the current immutable object by setting a present value for the optionalinitialOptionattribute.final ExternalSelectMenuwithInitialOption(Optional<? extends Option> optional) Copy the current immutable object by setting an optional value for theinitialOptionattribute.final ExternalSelectMenuwithMinQueryLength(Integer value) Copy the current immutable object by setting a present value for the optionalminQueryLengthattribute.final ExternalSelectMenuwithMinQueryLength(Optional<Integer> optional) Copy the current immutable object by setting an optional value for theminQueryLengthattribute.final ExternalSelectMenuwithPlaceholder(Text value) Copy the current immutable object by setting a value for theplaceholderattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceExternalSelectMenuIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getPlaceholder
- Specified by:
getPlaceholderin interfaceExternalSelectMenuIF- Returns:
- The value of the
placeholderattribute
-
getActionId
- Specified by:
getActionIdin interfaceExternalSelectMenuIF- Specified by:
getActionIdin interfaceHasActionId- Returns:
- The value of the
actionIdattribute
-
getInitialOption
- Specified by:
getInitialOptionin interfaceExternalSelectMenuIF- Returns:
- The value of the
initialOptionattribute
-
getMinQueryLength
- Specified by:
getMinQueryLengthin interfaceExternalSelectMenuIF- Returns:
- The value of the
minQueryLengthattribute
-
getConfirmationDialog
- Specified by:
getConfirmationDialogin interfaceExternalSelectMenuIF- 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
-
withInitialOption
Copy the current immutable object by setting a present value for the optionalinitialOptionattribute.- Parameters:
value- The value for initialOption,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withInitialOption
Copy the current immutable object by setting an optional value for theinitialOptionattribute. 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 initialOption- Returns:
- A modified copy or
thisif not changed
-
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
-
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 ExternalSelectMenu 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 ofExternalSelectMenuthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,placeholder,actionId,initialOption,minQueryLength,confirmationDialog. -
toString
Prints the immutable valueExternalSelectMenuwith attribute values. -
of
Construct a new immutableExternalSelectMenuinstance.- Parameters:
placeholder- The value for theplaceholderattributeactionId- The value for theactionIdattribute- Returns:
- An immutable ExternalSelectMenu instance
-
copyOf
Creates an immutable copy of aExternalSelectMenuIFvalue. 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 ExternalSelectMenu instance
-
builder
Creates a builder forExternalSelectMenu.ExternalSelectMenu.builder() .setPlaceholder(com.hubspot.slack.client.models.blocks.objects.Text) // requiredplaceholder.setActionId(String) // requiredactionId.setInitialOption(Optional<com.hubspot.slack.client.models.blocks.objects.Option>) // optionalinitialOption.setMinQueryLength(Optional<Integer>) // optionalminQueryLength.setConfirmationDialog(Optional<com.hubspot.slack.client.models.blocks.objects.ConfirmationDialog>) // optionalconfirmationDialog.build();- Returns:
- A new ExternalSelectMenu builder
-