Class StaticMultiSelectMenu
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.StaticMultiSelectMenu
- All Implemented Interfaces:
BlockElement,HasActionId,StaticMultiSelectMenuIF
@Generated(from="StaticMultiSelectMenuIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class StaticMultiSelectMenu
extends Object
implements StaticMultiSelectMenuIF
Immutable implementation of
StaticMultiSelectMenuIF.
Use the builder to create immutable instances:
StaticMultiSelectMenu.builder().
Use the static factory method to create immutable instances:
StaticMultiSelectMenu.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeStaticMultiSelectMenu. -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.StaticMultiSelectMenuIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forStaticMultiSelectMenu.static StaticMultiSelectMenucopyOf(StaticMultiSelectMenuIF instance) Creates an immutable copy of aStaticMultiSelectMenuIFvalue.booleanThis instance is equal to all instances ofStaticMultiSelectMenuthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,placeholder,actionId,options,optionGroups,initialOptions,confirmationDialog.static StaticMultiSelectMenuConstruct a new immutableStaticMultiSelectMenuinstance.static StaticMultiSelectMenuConstruct a new immutableStaticMultiSelectMenuinstance.toString()Prints the immutable valueStaticMultiSelectMenuwith attribute values.final StaticMultiSelectMenuwithActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.final StaticMultiSelectMenuCopy the current immutable object by setting a present value for the optionalconfirmationDialogattribute.final StaticMultiSelectMenuwithConfirmationDialog(Optional<? extends ConfirmationDialog> optional) Copy the current immutable object by setting an optional value for theconfirmationDialogattribute.final StaticMultiSelectMenuwithInitialOptions(OptionOrOptionGroup... elements) Copy the current immutable object with elements that replace the content ofinitialOptions.final StaticMultiSelectMenuwithInitialOptions(Iterable<? extends OptionOrOptionGroup> elements) Copy the current immutable object with elements that replace the content ofinitialOptions.final StaticMultiSelectMenuwithOptionGroups(OptionGroup... elements) Copy the current immutable object with elements that replace the content ofoptionGroups.final StaticMultiSelectMenuwithOptionGroups(Iterable<? extends OptionGroup> elements) Copy the current immutable object with elements that replace the content ofoptionGroups.final StaticMultiSelectMenuwithOptions(Option... elements) Copy the current immutable object with elements that replace the content ofoptions.final StaticMultiSelectMenuwithOptions(Iterable<? extends Option> elements) Copy the current immutable object with elements that replace the content ofoptions.final StaticMultiSelectMenuwithPlaceholder(Text value) Copy the current immutable object by setting a value for theplaceholderattribute.Methods inherited from interface com.hubspot.slack.client.models.blocks.elements.StaticMultiSelectMenuIF
validate
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceStaticMultiSelectMenuIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getPlaceholder
- Specified by:
getPlaceholderin interfaceStaticMultiSelectMenuIF- Returns:
- The value of the
placeholderattribute
-
getActionId
- Specified by:
getActionIdin interfaceHasActionId- Specified by:
getActionIdin interfaceStaticMultiSelectMenuIF- Returns:
- The value of the
actionIdattribute
-
getOptions
- Specified by:
getOptionsin interfaceStaticMultiSelectMenuIF- Returns:
- The value of the
optionsattribute
-
getOptionGroups
- Specified by:
getOptionGroupsin interfaceStaticMultiSelectMenuIF- Returns:
- The value of the
optionGroupsattribute
-
getInitialOptions
- Specified by:
getInitialOptionsin interfaceStaticMultiSelectMenuIF- Returns:
- The value of the
initialOptionsattribute
-
getConfirmationDialog
- Specified by:
getConfirmationDialogin interfaceStaticMultiSelectMenuIF- 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
-
withOptions
Copy the current immutable object with elements that replace the content ofoptions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withOptions
Copy the current immutable object with elements that replace the content ofoptions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of options elements to set- Returns:
- A modified copy or
thisif not changed
-
withOptionGroups
Copy the current immutable object with elements that replace the content ofoptionGroups.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withOptionGroups
Copy the current immutable object with elements that replace the content ofoptionGroups. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of optionGroups elements to set- 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 StaticMultiSelectMenu 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 StaticMultiSelectMenu 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 ofStaticMultiSelectMenuthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,placeholder,actionId,options,optionGroups,initialOptions,confirmationDialog. -
toString
Prints the immutable valueStaticMultiSelectMenuwith attribute values. -
of
Construct a new immutableStaticMultiSelectMenuinstance.- Parameters:
placeholder- The value for theplaceholderattributeactionId- The value for theactionIdattributeoptions- The value for theoptionsattribute- Returns:
- An immutable StaticMultiSelectMenu instance
-
of
public static StaticMultiSelectMenu of(Text placeholder, String actionId, Iterable<? extends Option> options) Construct a new immutableStaticMultiSelectMenuinstance.- Parameters:
placeholder- The value for theplaceholderattributeactionId- The value for theactionIdattributeoptions- The value for theoptionsattribute- Returns:
- An immutable StaticMultiSelectMenu instance
-
copyOf
Creates an immutable copy of aStaticMultiSelectMenuIFvalue. 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 StaticMultiSelectMenu instance
-
builder
Creates a builder forStaticMultiSelectMenu.StaticMultiSelectMenu.builder() .setPlaceholder(com.hubspot.slack.client.models.blocks.objects.Text) // requiredplaceholder.setActionId(String) // requiredactionId.addOptions|addAllOptions(com.hubspot.slack.client.models.blocks.objects.Option) //optionselements .addOptionGroups|addAllOptionGroups(com.hubspot.slack.client.models.blocks.objects.OptionGroup) //optionGroupselements .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 StaticMultiSelectMenu builder
-