Class ViewStaticSelect
java.lang.Object
com.hubspot.slack.client.models.interaction.views.ViewStaticSelect
- All Implemented Interfaces:
ViewInput,ViewStaticSelectIF
@Generated(from="ViewStaticSelectIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ViewStaticSelect
extends Object
implements ViewStaticSelectIF
Immutable implementation of
ViewStaticSelectIF.
Use the builder to create immutable instances:
ViewStaticSelect.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewStaticSelect.Builderbuilder()Creates a builder forViewStaticSelect.static ViewStaticSelectcopyOf(ViewStaticSelectIF instance) Creates an immutable copy of aViewStaticSelectIFvalue.booleanThis instance is equal to all instances ofViewStaticSelectthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,selectedOption.toString()Prints the immutable valueViewStaticSelectwith attribute values.final ViewStaticSelectwithSelectedOption(Option value) Copy the current immutable object by setting a present value for the optionalselectedOptionattribute.final ViewStaticSelectwithSelectedOption(Optional<? extends Option> optional) Copy the current immutable object by setting an optional value for theselectedOptionattribute.final ViewStaticSelectwithType(ViewInputType value) Copy the current immutable object by setting a value for thetypeattribute.Methods inherited from interface com.hubspot.slack.client.models.interaction.views.ViewStaticSelectIF
getStringValue
-
Method Details
-
getType
-
getSelectedOption
- Specified by:
getSelectedOptionin interfaceViewStaticSelectIF- 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 ofViewStaticSelectthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,selectedOption. -
toString
Prints the immutable valueViewStaticSelectwith attribute values. -
copyOf
Creates an immutable copy of aViewStaticSelectIFvalue. 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 ViewStaticSelect instance
-
builder
Creates a builder forViewStaticSelect.ViewStaticSelect.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 ViewStaticSelect builder
-