Class ViewTimePicker
java.lang.Object
com.hubspot.slack.client.models.interaction.views.ViewTimePicker
- All Implemented Interfaces:
ViewInput,ViewTimePickerIF
@Generated(from="ViewTimePickerIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ViewTimePicker
extends Object
implements ViewTimePickerIF
Immutable implementation of
ViewTimePickerIF.
Use the builder to create immutable instances:
ViewTimePicker.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewTimePicker.Builderbuilder()Creates a builder forViewTimePicker.static ViewTimePickercopyOf(ViewTimePickerIF instance) Creates an immutable copy of aViewTimePickerIFvalue.booleanThis instance is equal to all instances ofViewTimePickerthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,stringValue,selectedTime.toString()Prints the immutable valueViewTimePickerwith attribute values.final ViewTimePickerwithSelectedTime(LocalTime value) Copy the current immutable object by setting a present value for the optionalselectedTimeattribute.final ViewTimePickerwithSelectedTime(Optional<? extends LocalTime> optional) Copy the current immutable object by setting an optional value for theselectedTimeattribute.final ViewTimePickerwithStringValue(String value) Copy the current immutable object by setting a present value for the optionalstringValueattribute.final ViewTimePickerwithStringValue(Optional<String> optional) Copy the current immutable object by setting an optional value for thestringValueattribute.final ViewTimePickerwithType(ViewInputType value) Copy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
getType
-
getStringValue
- Specified by:
getStringValuein interfaceViewInput- Returns:
- The value of the
stringValueattribute
-
getSelectedTime
- Specified by:
getSelectedTimein interfaceViewTimePickerIF- Returns:
- The value of the
selectedTimeattribute
-
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
-
withStringValue
Copy the current immutable object by setting a present value for the optionalstringValueattribute.- Parameters:
value- The value for stringValue,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withStringValue
Copy the current immutable object by setting an optional value for thestringValueattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for stringValue- Returns:
- A modified copy or
thisif not changed
-
withSelectedTime
Copy the current immutable object by setting a present value for the optionalselectedTimeattribute.- Parameters:
value- The value for selectedTime,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withSelectedTime
Copy the current immutable object by setting an optional value for theselectedTimeattribute. 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 selectedTime- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofViewTimePickerthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,stringValue,selectedTime. -
toString
Prints the immutable valueViewTimePickerwith attribute values. -
copyOf
Creates an immutable copy of aViewTimePickerIFvalue. 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 ViewTimePicker instance
-
builder
Creates a builder forViewTimePicker.ViewTimePicker.builder() .setType(com.hubspot.slack.client.models.interaction.views.ViewInputType) // requiredtype.setStringValue(Optional<String>) // optionalstringValue.setSelectedTime(Optional<java.time.LocalTime>) // optionalselectedTime.build();- Returns:
- A new ViewTimePicker builder
-