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