Class TimePicker
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.TimePicker
- All Implemented Interfaces:
BlockElement,HasActionId,TimePickerIF
@Generated(from="TimePickerIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class TimePicker
extends Object
implements TimePickerIF
Immutable implementation of
TimePickerIF.
Use the builder to create immutable instances:
TimePicker.builder().
Use the static factory method to create immutable instances:
TimePicker.of().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.TimePickerIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic TimePicker.Builderbuilder()Creates a builder forTimePicker.static TimePickercopyOf(TimePickerIF instance) Creates an immutable copy of aTimePickerIFvalue.booleanThis instance is equal to all instances ofTimePickerthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,actionId,placeholder,timezone,initialTime,confirmationDialog.static TimePickerConstruct a new immutableTimePickerinstance.toString()Prints the immutable valueTimePickerwith attribute values.final TimePickerwithActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.final TimePickerCopy the current immutable object by setting a present value for the optionalconfirmationDialogattribute.final TimePickerwithConfirmationDialog(Optional<? extends ConfirmationDialog> optional) Copy the current immutable object by setting an optional value for theconfirmationDialogattribute.final TimePickerwithInitialTime(LocalTime value) Copy the current immutable object by setting a present value for the optionalinitialTimeattribute.final TimePickerwithInitialTime(Optional<? extends LocalTime> optional) Copy the current immutable object by setting an optional value for theinitialTimeattribute.final TimePickerwithPlaceholder(Text value) Copy the current immutable object by setting a present value for the optionalplaceholderattribute.final TimePickerwithPlaceholder(Optional<? extends Text> optional) Copy the current immutable object by setting an optional value for theplaceholderattribute.final TimePickerwithTimezone(String value) Copy the current immutable object by setting a present value for the optionaltimezoneattribute.final TimePickerwithTimezone(Optional<String> optional) Copy the current immutable object by setting an optional value for thetimezoneattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceTimePickerIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getActionId
- Specified by:
getActionIdin interfaceHasActionId- Specified by:
getActionIdin interfaceTimePickerIF- Returns:
- The value of the
actionIdattribute
-
getPlaceholder
- Specified by:
getPlaceholderin interfaceTimePickerIF- Returns:
- The value of the
placeholderattribute
-
getTimezone
- Specified by:
getTimezonein interfaceTimePickerIF- Returns:
- The value of the
timezoneattribute
-
getInitialTime
- Specified by:
getInitialTimein interfaceTimePickerIF- Returns:
- The value of the
initialTimeattribute
-
getConfirmationDialog
- Specified by:
getConfirmationDialogin interfaceTimePickerIF- 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
-
withTimezone
Copy the current immutable object by setting a present value for the optionaltimezoneattribute.- Parameters:
value- The value for timezone,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withTimezone
Copy the current immutable object by setting an optional value for thetimezoneattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for timezone- Returns:
- A modified copy or
thisif not changed
-
withInitialTime
Copy the current immutable object by setting a present value for the optionalinitialTimeattribute.- Parameters:
value- The value for initialTime,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withInitialTime
Copy the current immutable object by setting an optional value for theinitialTimeattribute. 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 initialTime- 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 ofTimePickerthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,actionId,placeholder,timezone,initialTime,confirmationDialog. -
toString
Prints the immutable valueTimePickerwith attribute values. -
of
Construct a new immutableTimePickerinstance.- Parameters:
actionId- The value for theactionIdattribute- Returns:
- An immutable TimePicker instance
-
copyOf
Creates an immutable copy of aTimePickerIFvalue. 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 TimePicker instance
-
builder
Creates a builder forTimePicker.TimePicker.builder() .setActionId(String) // requiredactionId.setPlaceholder(Optional<com.hubspot.slack.client.models.blocks.objects.Text>) // optionalplaceholder.setTimezone(Optional<String>) // optionaltimezone.setInitialTime(Optional<java.time.LocalTime>) // optionalinitialTime.setConfirmationDialog(Optional<com.hubspot.slack.client.models.blocks.objects.ConfirmationDialog>) // optionalconfirmationDialog.build();- Returns:
- A new TimePicker builder
-