Class ViewExternalSelect
java.lang.Object
com.hubspot.slack.client.models.interaction.views.ViewExternalSelect
- All Implemented Interfaces:
ViewExternalSelectIF,ViewInput
@Generated(from="ViewExternalSelectIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ViewExternalSelect
extends Object
implements ViewExternalSelectIF
Immutable implementation of
ViewExternalSelectIF.
Use the builder to create immutable instances:
ViewExternalSelect.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewExternalSelect.Builderbuilder()Creates a builder forViewExternalSelect.static ViewExternalSelectcopyOf(ViewExternalSelectIF instance) Creates an immutable copy of aViewExternalSelectIFvalue.booleanThis instance is equal to all instances ofViewExternalSelectthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,selectedOption.toString()Prints the immutable valueViewExternalSelectwith attribute values.final ViewExternalSelectwithSelectedOption(Option value) Copy the current immutable object by setting a present value for the optionalselectedOptionattribute.final ViewExternalSelectwithSelectedOption(Optional<? extends Option> optional) Copy the current immutable object by setting an optional value for theselectedOptionattribute.final ViewExternalSelectwithType(ViewInputType value) Copy the current immutable object by setting a value for thetypeattribute.Methods inherited from interface com.hubspot.slack.client.models.interaction.views.ViewExternalSelectIF
getStringValue
-
Method Details
-
getType
-
getSelectedOption
- Specified by:
getSelectedOptionin interfaceViewExternalSelectIF- Returns:
- The value of the
selectedOptionattribute
-
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
-
withSelectedOption
Copy the current immutable object by setting a present value for the optionalselectedOptionattribute.- Parameters:
value- The value for selectedOption,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withSelectedOption
Copy the current immutable object by setting an optional value for theselectedOptionattribute. 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 selectedOption- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofViewExternalSelectthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,selectedOption. -
toString
Prints the immutable valueViewExternalSelectwith attribute values. -
copyOf
Creates an immutable copy of aViewExternalSelectIFvalue. 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 ViewExternalSelect instance
-
builder
Creates a builder forViewExternalSelect.ViewExternalSelect.builder() .setType(com.hubspot.slack.client.models.interaction.views.ViewInputType) // requiredtype.setSelectedOption(Optional<com.hubspot.slack.client.models.blocks.objects.Option>) // optionalselectedOption.build();- Returns:
- A new ViewExternalSelect builder
-