Class ViewConversationsSelect
java.lang.Object
com.hubspot.slack.client.models.interaction.views.ViewConversationsSelect
- All Implemented Interfaces:
ViewConversationsSelectIF,ViewInput
@Generated(from="ViewConversationsSelectIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ViewConversationsSelect
extends Object
implements ViewConversationsSelectIF
Immutable implementation of
ViewConversationsSelectIF.
Use the builder to create immutable instances:
ViewConversationsSelect.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeViewConversationsSelect. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forViewConversationsSelect.static ViewConversationsSelectcopyOf(ViewConversationsSelectIF instance) Creates an immutable copy of aViewConversationsSelectIFvalue.booleanThis instance is equal to all instances ofViewConversationsSelectthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,selectedConversation.toString()Prints the immutable valueViewConversationsSelectwith attribute values.final ViewConversationsSelectwithSelectedConversation(String value) Copy the current immutable object by setting a present value for the optionalselectedConversationattribute.final ViewConversationsSelectwithSelectedConversation(Optional<String> optional) Copy the current immutable object by setting an optional value for theselectedConversationattribute.final ViewConversationsSelectwithType(ViewInputType value) Copy the current immutable object by setting a value for thetypeattribute.Methods inherited from interface com.hubspot.slack.client.models.interaction.views.ViewConversationsSelectIF
getStringValue
-
Method Details
-
getType
-
getSelectedConversation
- Specified by:
getSelectedConversationin interfaceViewConversationsSelectIF- Returns:
- The value of the
selectedConversationattribute
-
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
-
withSelectedConversation
Copy the current immutable object by setting a present value for the optionalselectedConversationattribute.- Parameters:
value- The value for selectedConversation,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withSelectedConversation
Copy the current immutable object by setting an optional value for theselectedConversationattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for selectedConversation- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofViewConversationsSelectthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,selectedConversation. -
toString
Prints the immutable valueViewConversationsSelectwith attribute values. -
copyOf
Creates an immutable copy of aViewConversationsSelectIFvalue. 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 ViewConversationsSelect instance
-
builder
Creates a builder forViewConversationsSelect.ViewConversationsSelect.builder() .setType(com.hubspot.slack.client.models.interaction.views.ViewInputType) // requiredtype.setSelectedConversation(Optional<String>) // optionalselectedConversation.build();- Returns:
- A new ViewConversationsSelect builder
-