Class UsersMultiSelectMenu
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.UsersMultiSelectMenu
- All Implemented Interfaces:
BlockElement,HasActionId,UsersMultiSelectMenuIF
@Generated(from="UsersMultiSelectMenuIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class UsersMultiSelectMenu
extends Object
implements UsersMultiSelectMenuIF
Immutable implementation of
UsersMultiSelectMenuIF.
Use the builder to create immutable instances:
UsersMultiSelectMenu.builder().
Use the static factory method to create immutable instances:
UsersMultiSelectMenu.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeUsersMultiSelectMenu. -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.UsersMultiSelectMenuIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic UsersMultiSelectMenu.Builderbuilder()Creates a builder forUsersMultiSelectMenu.static UsersMultiSelectMenucopyOf(UsersMultiSelectMenuIF instance) Creates an immutable copy of aUsersMultiSelectMenuIFvalue.booleanThis instance is equal to all instances ofUsersMultiSelectMenuthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,placeholder,actionId,initialUserIds,confirmationDialog.static UsersMultiSelectMenuConstruct a new immutableUsersMultiSelectMenuinstance.toString()Prints the immutable valueUsersMultiSelectMenuwith attribute values.final UsersMultiSelectMenuwithActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.final UsersMultiSelectMenuCopy the current immutable object by setting a present value for the optionalconfirmationDialogattribute.final UsersMultiSelectMenuwithConfirmationDialog(Optional<? extends ConfirmationDialog> optional) Copy the current immutable object by setting an optional value for theconfirmationDialogattribute.final UsersMultiSelectMenuwithInitialUserIds(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofinitialUserIds.final UsersMultiSelectMenuwithInitialUserIds(String... elements) Copy the current immutable object with elements that replace the content ofinitialUserIds.final UsersMultiSelectMenuwithPlaceholder(Text value) Copy the current immutable object by setting a value for theplaceholderattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceUsersMultiSelectMenuIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getPlaceholder
- Specified by:
getPlaceholderin interfaceUsersMultiSelectMenuIF- Returns:
- The value of the
placeholderattribute
-
getActionId
- Specified by:
getActionIdin interfaceHasActionId- Specified by:
getActionIdin interfaceUsersMultiSelectMenuIF- Returns:
- The value of the
actionIdattribute
-
getInitialUserIds
- Specified by:
getInitialUserIdsin interfaceUsersMultiSelectMenuIF- Returns:
- The value of the
initialUserIdsattribute
-
getConfirmationDialog
- Specified by:
getConfirmationDialogin interfaceUsersMultiSelectMenuIF- 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
-
withInitialUserIds
Copy the current immutable object with elements that replace the content ofinitialUserIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withInitialUserIds
Copy the current immutable object with elements that replace the content ofinitialUserIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of initialUserIds 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 UsersMultiSelectMenu 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 ofUsersMultiSelectMenuthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,placeholder,actionId,initialUserIds,confirmationDialog. -
toString
Prints the immutable valueUsersMultiSelectMenuwith attribute values. -
of
Construct a new immutableUsersMultiSelectMenuinstance.- Parameters:
placeholder- The value for theplaceholderattributeactionId- The value for theactionIdattribute- Returns:
- An immutable UsersMultiSelectMenu instance
-
copyOf
Creates an immutable copy of aUsersMultiSelectMenuIFvalue. 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 UsersMultiSelectMenu instance
-
builder
Creates a builder forUsersMultiSelectMenu.UsersMultiSelectMenu.builder() .setPlaceholder(com.hubspot.slack.client.models.blocks.objects.Text) // requiredplaceholder.setActionId(String) // requiredactionId.addInitialUserIds|addAllInitialUserIds(String) //initialUserIdselements .setConfirmationDialog(Optional<com.hubspot.slack.client.models.blocks.objects.ConfirmationDialog>) // optionalconfirmationDialog.build();- Returns:
- A new UsersMultiSelectMenu builder
-