Class ViewDateTimePicker
java.lang.Object
com.hubspot.slack.client.models.interaction.views.ViewDateTimePicker
- All Implemented Interfaces:
ViewDateTimePickerIF,ViewInput
@Generated(from="ViewDateTimePickerIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ViewDateTimePicker
extends Object
implements ViewDateTimePickerIF
Immutable implementation of
ViewDateTimePickerIF.
Use the builder to create immutable instances:
ViewDateTimePicker.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewDateTimePicker.Builderbuilder()Creates a builder forViewDateTimePicker.static ViewDateTimePickercopyOf(ViewDateTimePickerIF instance) Creates an immutable copy of aViewDateTimePickerIFvalue.booleanThis instance is equal to all instances ofViewDateTimePickerthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,stringValue,selectedDateTime.toString()Prints the immutable valueViewDateTimePickerwith attribute values.final ViewDateTimePickerwithSelectedDateTime(Integer value) Copy the current immutable object by setting a present value for the optionalselectedDateTimeattribute.final ViewDateTimePickerwithSelectedDateTime(Optional<Integer> optional) Copy the current immutable object by setting an optional value for theselectedDateTimeattribute.final ViewDateTimePickerwithStringValue(String value) Copy the current immutable object by setting a present value for the optionalstringValueattribute.final ViewDateTimePickerwithStringValue(Optional<String> optional) Copy the current immutable object by setting an optional value for thestringValueattribute.final ViewDateTimePickerwithType(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
-
getSelectedDateTime
- Specified by:
getSelectedDateTimein interfaceViewDateTimePickerIF- Returns:
- The value of the
selectedDateTimeattribute
-
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
-
withSelectedDateTime
Copy the current immutable object by setting a present value for the optionalselectedDateTimeattribute.- Parameters:
value- The value for selectedDateTime,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withSelectedDateTime
Copy the current immutable object by setting an optional value for theselectedDateTimeattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for selectedDateTime- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofViewDateTimePickerthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,stringValue,selectedDateTime. -
toString
Prints the immutable valueViewDateTimePickerwith attribute values. -
copyOf
Creates an immutable copy of aViewDateTimePickerIFvalue. 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 ViewDateTimePicker instance
-
builder
Creates a builder forViewDateTimePicker.ViewDateTimePicker.builder() .setType(com.hubspot.slack.client.models.interaction.views.ViewInputType) // requiredtype.setStringValue(Optional<String>) // optionalstringValue.setSelectedDateTime(Optional<Integer>) // optionalselectedDateTime.build();- Returns:
- A new ViewDateTimePicker builder
-