Class Checkboxes
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.Checkboxes
- All Implemented Interfaces:
BlockElement,CheckboxesIF,HasActionId
@Generated(from="CheckboxesIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class Checkboxes
extends Object
implements CheckboxesIF
Immutable implementation of
CheckboxesIF.
Use the builder to create immutable instances:
Checkboxes.builder().
Use the static factory method to create immutable instances:
Checkboxes.of().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.CheckboxesIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic Checkboxes.Builderbuilder()Creates a builder forCheckboxes.static CheckboxescopyOf(CheckboxesIF instance) Creates an immutable copy of aCheckboxesIFvalue.booleanThis instance is equal to all instances ofCheckboxesthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,actionId,options,initialOptions,confirmationDialog.static CheckboxesConstruct a new immutableCheckboxesinstance.static CheckboxesConstruct a new immutableCheckboxesinstance.toString()Prints the immutable valueCheckboxeswith attribute values.final CheckboxeswithActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.final CheckboxesCopy the current immutable object by setting a present value for the optionalconfirmationDialogattribute.final CheckboxeswithConfirmationDialog(Optional<? extends ConfirmationDialog> optional) Copy the current immutable object by setting an optional value for theconfirmationDialogattribute.final CheckboxeswithInitialOptions(Option... elements) Copy the current immutable object with elements that replace the content ofinitialOptions.final CheckboxeswithInitialOptions(Iterable<? extends Option> elements) Copy the current immutable object with elements that replace the content ofinitialOptions.final CheckboxeswithOptions(Option... elements) Copy the current immutable object with elements that replace the content ofoptions.final CheckboxeswithOptions(Iterable<? extends Option> elements) Copy the current immutable object with elements that replace the content ofoptions.Methods inherited from interface com.hubspot.slack.client.models.blocks.elements.CheckboxesIF
validate
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceCheckboxesIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getActionId
- Specified by:
getActionIdin interfaceCheckboxesIF- Specified by:
getActionIdin interfaceHasActionId- Returns:
- The value of the
actionIdattribute
-
getOptions
- Specified by:
getOptionsin interfaceCheckboxesIF- Returns:
- The value of the
optionsattribute
-
getInitialOptions
- Specified by:
getInitialOptionsin interfaceCheckboxesIF- Returns:
- The value of the
initialOptionsattribute
-
getConfirmationDialog
- Specified by:
getConfirmationDialogin interfaceCheckboxesIF- Returns:
- The value of the
confirmationDialogattribute
-
withActionId
Copy the current immutable object by setting a value for theactionIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for actionId- Returns:
- A modified copy or the
thisobject
-
withOptions
Copy the current immutable object with elements that replace the content ofoptions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withOptions
Copy the current immutable object with elements that replace the content ofoptions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of options elements to set- Returns:
- A modified copy or
thisif not changed
-
withInitialOptions
Copy the current immutable object with elements that replace the content ofinitialOptions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withInitialOptions
Copy the current immutable object with elements that replace the content ofinitialOptions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of initialOptions elements to set- Returns:
- A modified copy or
thisif not changed
-
withConfirmationDialog
Copy the current immutable object by setting a present value for the optionalconfirmationDialogattribute.- Parameters:
value- The value for confirmationDialog,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withConfirmationDialog
Copy the current immutable object by setting an optional value for theconfirmationDialogattribute. 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 confirmationDialog- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofCheckboxesthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,actionId,options,initialOptions,confirmationDialog. -
toString
Prints the immutable valueCheckboxeswith attribute values. -
of
Construct a new immutableCheckboxesinstance.- Parameters:
actionId- The value for theactionIdattributeoptions- The value for theoptionsattribute- Returns:
- An immutable Checkboxes instance
-
of
Construct a new immutableCheckboxesinstance.- Parameters:
actionId- The value for theactionIdattributeoptions- The value for theoptionsattribute- Returns:
- An immutable Checkboxes instance
-
copyOf
Creates an immutable copy of aCheckboxesIFvalue. 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 Checkboxes instance
-
builder
Creates a builder forCheckboxes.Checkboxes.builder() .setActionId(String) // requiredactionId.addOptions|addAllOptions(com.hubspot.slack.client.models.blocks.objects.Option) //optionselements .addInitialOptions|addAllInitialOptions(com.hubspot.slack.client.models.blocks.objects.Option) //initialOptionselements .setConfirmationDialog(Optional<com.hubspot.slack.client.models.blocks.objects.ConfirmationDialog>) // optionalconfirmationDialog.build();- Returns:
- A new Checkboxes builder
-