Class DndSetSnoozeParams

java.lang.Object
com.hubspot.slack.client.methods.params.dnd.DndSetSnoozeParams
All Implemented Interfaces:
DndSetSnoozeParamsIF

@Generated(from="DndSetSnoozeParamsIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class DndSetSnoozeParams extends Object implements DndSetSnoozeParamsIF
Immutable implementation of DndSetSnoozeParamsIF.

Use the builder to create immutable instances: DndSetSnoozeParams.builder().

  • Method Details

    • getNumMinutes

      public int getNumMinutes()
      Specified by:
      getNumMinutes in interface DndSetSnoozeParamsIF
      Returns:
      The value of the numMinutes attribute
    • withNumMinutes

      public final DndSetSnoozeParams withNumMinutes(int value)
      Copy the current immutable object by setting a value for the numMinutes attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for numMinutes
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of DndSetSnoozeParams 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: numMinutes.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static DndSetSnoozeParams copyOf(DndSetSnoozeParamsIF instance)
      Creates an immutable copy of a DndSetSnoozeParamsIF 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 DndSetSnoozeParams instance
    • builder

      public static DndSetSnoozeParams.Builder builder()
      Creates a builder for DndSetSnoozeParams.
       DndSetSnoozeParams.builder()
          .setNumMinutes(int) // required numMinutes
          .build();
       
      Returns:
      A new DndSetSnoozeParams builder