Class DatePicker
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.DatePicker
- All Implemented Interfaces:
BlockElement,DatePickerIF,HasActionId
@Generated(from="DatePickerIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class DatePicker
extends Object
implements DatePickerIF
Immutable implementation of
DatePickerIF.
Use the builder to create immutable instances:
DatePicker.builder().
Use the static factory method to create immutable instances:
DatePicker.of().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.DatePickerIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic DatePicker.Builderbuilder()Creates a builder forDatePicker.static DatePickercopyOf(DatePickerIF instance) Creates an immutable copy of aDatePickerIFvalue.booleanThis instance is equal to all instances ofDatePickerthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,actionId,placeholder,initialDate,confirmationDialog.static DatePickerConstruct a new immutableDatePickerinstance.toString()Prints the immutable valueDatePickerwith attribute values.final DatePickerwithActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.final DatePickerCopy the current immutable object by setting a present value for the optionalconfirmationDialogattribute.final DatePickerwithConfirmationDialog(Optional<? extends ConfirmationDialog> optional) Copy the current immutable object by setting an optional value for theconfirmationDialogattribute.final DatePickerwithInitialDate(LocalDate value) Copy the current immutable object by setting a present value for the optionalinitialDateattribute.final DatePickerwithInitialDate(Optional<? extends LocalDate> optional) Copy the current immutable object by setting an optional value for theinitialDateattribute.final DatePickerwithPlaceholder(Text value) Copy the current immutable object by setting a present value for the optionalplaceholderattribute.final DatePickerwithPlaceholder(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 interfaceDatePickerIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getActionId
- Specified by:
getActionIdin interfaceDatePickerIF- Specified by:
getActionIdin interfaceHasActionId- Returns:
- The value of the
actionIdattribute
-
getPlaceholder
- Specified by:
getPlaceholderin interfaceDatePickerIF- Returns:
- The value of the
placeholderattribute
-
getInitialDate
- Specified by:
getInitialDatein interfaceDatePickerIF- Returns:
- The value of the
initialDateattribute
-
getConfirmationDialog
- Specified by:
getConfirmationDialogin interfaceDatePickerIF- 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
-
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
-
withInitialDate
Copy the current immutable object by setting a present value for the optionalinitialDateattribute.- Parameters:
value- The value for initialDate,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withInitialDate
Copy the current immutable object by setting an optional value for theinitialDateattribute. 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 initialDate- 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 ofDatePickerthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,actionId,placeholder,initialDate,confirmationDialog. -
toString
Prints the immutable valueDatePickerwith attribute values. -
of
Construct a new immutableDatePickerinstance.- Parameters:
actionId- The value for theactionIdattribute- Returns:
- An immutable DatePicker instance
-
copyOf
Creates an immutable copy of aDatePickerIFvalue. 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 DatePicker instance
-
builder
Creates a builder forDatePicker.DatePicker.builder() .setActionId(String) // requiredactionId.setPlaceholder(Optional<com.hubspot.slack.client.models.blocks.objects.Text>) // optionalplaceholder.setInitialDate(Optional<java.time.LocalDate>) // optionalinitialDate.setConfirmationDialog(Optional<com.hubspot.slack.client.models.blocks.objects.ConfirmationDialog>) // optionalconfirmationDialog.build();- Returns:
- A new DatePicker builder
-