Class UsersSelectInput
java.lang.Object
com.hubspot.slack.client.models.interaction.views.UsersSelectInput
- All Implemented Interfaces:
UsersSelectInputIF,ViewInput
@Generated(from="UsersSelectInputIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class UsersSelectInput
extends Object
implements UsersSelectInputIF
Immutable implementation of
UsersSelectInputIF.
Use the builder to create immutable instances:
UsersSelectInput.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic UsersSelectInput.Builderbuilder()Creates a builder forUsersSelectInput.static UsersSelectInputcopyOf(UsersSelectInputIF instance) Creates an immutable copy of aUsersSelectInputIFvalue.booleanThis instance is equal to all instances ofUsersSelectInputthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,selectedUser.toString()Prints the immutable valueUsersSelectInputwith attribute values.final UsersSelectInputwithSelectedUser(String value) Copy the current immutable object by setting a present value for the optionalselectedUserattribute.final UsersSelectInputwithSelectedUser(Optional<String> optional) Copy the current immutable object by setting an optional value for theselectedUserattribute.final UsersSelectInputwithType(ViewInputType value) Copy the current immutable object by setting a value for thetypeattribute.Methods inherited from interface com.hubspot.slack.client.models.interaction.views.UsersSelectInputIF
getStringValue
-
Method Details
-
getType
-
getSelectedUser
- Specified by:
getSelectedUserin interfaceUsersSelectInputIF- Returns:
- The value of the
selectedUserattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withSelectedUser
Copy the current immutable object by setting a present value for the optionalselectedUserattribute.- Parameters:
value- The value for selectedUser,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withSelectedUser
Copy the current immutable object by setting an optional value for theselectedUserattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for selectedUser- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofUsersSelectInputthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,selectedUser. -
toString
Prints the immutable valueUsersSelectInputwith attribute values. -
copyOf
Creates an immutable copy of aUsersSelectInputIFvalue. 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 UsersSelectInput instance
-
builder
Creates a builder forUsersSelectInput.UsersSelectInput.builder() .setType(com.hubspot.slack.client.models.interaction.views.ViewInputType) // requiredtype.setSelectedUser(Optional<String>) // optionalselectedUser.build();- Returns:
- A new UsersSelectInput builder
-