Class DateTimePicker
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.DateTimePicker
- All Implemented Interfaces:
BlockElement,DateTimePickerIF,HasActionId
@Generated(from="DateTimePickerIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class DateTimePicker
extends Object
implements DateTimePickerIF
Immutable implementation of
DateTimePickerIF.
Use the builder to create immutable instances:
DateTimePicker.builder().
Use the static factory method to create immutable instances:
DateTimePicker.of().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.DateTimePickerIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic DateTimePicker.Builderbuilder()Creates a builder forDateTimePicker.static DateTimePickercopyOf(DateTimePickerIF instance) Creates an immutable copy of aDateTimePickerIFvalue.booleanThis instance is equal to all instances ofDateTimePickerthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,actionId,placeholder,initialDateTime,confirmationDialog,focusOnLoad.static DateTimePickerConstruct a new immutableDateTimePickerinstance.toString()Prints the immutable valueDateTimePickerwith attribute values.final DateTimePickerwithActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.final DateTimePickerCopy the current immutable object by setting a present value for the optionalconfirmationDialogattribute.final DateTimePickerwithConfirmationDialog(Optional<? extends ConfirmationDialog> optional) Copy the current immutable object by setting an optional value for theconfirmationDialogattribute.final DateTimePickerwithFocusOnLoad(Boolean value) Copy the current immutable object by setting a present value for the optionalfocusOnLoadattribute.final DateTimePickerwithFocusOnLoad(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thefocusOnLoadattribute.final DateTimePickerwithInitialDateTime(Integer value) Copy the current immutable object by setting a present value for the optionalinitialDateTimeattribute.final DateTimePickerwithInitialDateTime(Optional<Integer> optional) Copy the current immutable object by setting an optional value for theinitialDateTimeattribute.final DateTimePickerwithPlaceholder(Text value) Copy the current immutable object by setting a present value for the optionalplaceholderattribute.final DateTimePickerwithPlaceholder(Optional<? extends Text> optional) Copy the current immutable object by setting an optional value for theplaceholderattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceDateTimePickerIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getActionId
- Specified by:
getActionIdin interfaceDateTimePickerIF- Specified by:
getActionIdin interfaceHasActionId- Returns:
- The value of the
actionIdattribute
-
getPlaceholder
- Specified by:
getPlaceholderin interfaceDateTimePickerIF- Returns:
- The value of the
placeholderattribute
-
getInitialDateTime
- Specified by:
getInitialDateTimein interfaceDateTimePickerIF- Returns:
- The value of the
initialDateTimeattribute
-
getConfirmationDialog
- Specified by:
getConfirmationDialogin interfaceDateTimePickerIF- Returns:
- The value of the
confirmationDialogattribute
-
isFocusOnLoad
- Specified by:
isFocusOnLoadin interfaceDateTimePickerIF- Returns:
- The value of the
focusOnLoadattribute
-
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
-
withPlaceholder
Copy the current immutable object by setting a present value for the optionalplaceholderattribute.- Parameters:
value- The value for placeholder,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withPlaceholder
Copy the current immutable object by setting an optional value for theplaceholderattribute. 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 placeholder- Returns:
- A modified copy or
thisif not changed
-
withInitialDateTime
Copy the current immutable object by setting a present value for the optionalinitialDateTimeattribute.- Parameters:
value- The value for initialDateTime,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withInitialDateTime
Copy the current immutable object by setting an optional value for theinitialDateTimeattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for initialDateTime- 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
-
withFocusOnLoad
Copy the current immutable object by setting a present value for the optionalfocusOnLoadattribute.- Parameters:
value- The value for focusOnLoad,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withFocusOnLoad
Copy the current immutable object by setting an optional value for thefocusOnLoadattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for focusOnLoad- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofDateTimePickerthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,actionId,placeholder,initialDateTime,confirmationDialog,focusOnLoad. -
toString
Prints the immutable valueDateTimePickerwith attribute values. -
of
Construct a new immutableDateTimePickerinstance.- Parameters:
actionId- The value for theactionIdattribute- Returns:
- An immutable DateTimePicker instance
-
copyOf
Creates an immutable copy of aDateTimePickerIFvalue. 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 DateTimePicker instance
-
builder
Creates a builder forDateTimePicker.DateTimePicker.builder() .setActionId(String) // requiredactionId.setPlaceholder(Optional<com.hubspot.slack.client.models.blocks.objects.Text>) // optionalplaceholder.setInitialDateTime(Optional<Integer>) // optionalinitialDateTime.setConfirmationDialog(Optional<com.hubspot.slack.client.models.blocks.objects.ConfirmationDialog>) // optionalconfirmationDialog.setFocusOnLoad(Optional<Boolean>) // optionalfocusOnLoad.build();- Returns:
- A new DateTimePicker builder
-