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().

  • Method Details

    • getType

      public ViewInputType getType()
      Specified by:
      getType in interface ViewInput
      Returns:
      The value of the type attribute
    • getStringValue

      public Optional<String> getStringValue()
      Specified by:
      getStringValue in interface ViewInput
      Returns:
      The value of the stringValue attribute
    • getSelectedDateTime

      public Optional<Integer> getSelectedDateTime()
      Specified by:
      getSelectedDateTime in interface ViewDateTimePickerIF
      Returns:
      The value of the selectedDateTime attribute
    • withType

      public final ViewDateTimePicker withType(ViewInputType value)
      Copy the current immutable object by setting a value for the type attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for type
      Returns:
      A modified copy or the this object
    • withStringValue

      public final ViewDateTimePicker withStringValue(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional stringValue attribute.
      Parameters:
      value - The value for stringValue, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withStringValue

      public final ViewDateTimePicker withStringValue(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the stringValue attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for stringValue
      Returns:
      A modified copy or this if not changed
    • withSelectedDateTime

      public final ViewDateTimePicker withSelectedDateTime(@Nullable Integer value)
      Copy the current immutable object by setting a present value for the optional selectedDateTime attribute.
      Parameters:
      value - The value for selectedDateTime, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withSelectedDateTime

      public final ViewDateTimePicker withSelectedDateTime(Optional<Integer> optional)
      Copy the current immutable object by setting an optional value for the selectedDateTime attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for selectedDateTime
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ViewDateTimePicker that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: type, stringValue, selectedDateTime.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value ViewDateTimePicker with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ViewDateTimePicker copyOf(ViewDateTimePickerIF instance)
      Creates an immutable copy of a ViewDateTimePickerIF value. 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

      public static ViewDateTimePicker.Builder builder()
      Creates a builder for ViewDateTimePicker.
       ViewDateTimePicker.builder()
          .setType(com.hubspot.slack.client.models.interaction.views.ViewInputType) // required type
          .setStringValue(Optional<String>) // optional stringValue
          .setSelectedDateTime(Optional<Integer>) // optional selectedDateTime
          .build();
       
      Returns:
      A new ViewDateTimePicker builder