Class UserEmailParams

java.lang.Object
com.hubspot.slack.client.methods.params.users.UserEmailParams
All Implemented Interfaces:
UserEmailParamsIF

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

Use the builder to create immutable instances: UserEmailParams.builder(). Use the static factory method to create immutable instances: UserEmailParams.of().

  • Method Details

    • getEmail

      public String getEmail()
      Specified by:
      getEmail in interface UserEmailParamsIF
      Returns:
      The value of the email attribute
    • withEmail

      public final UserEmailParams withEmail(String value)
      Copy the current immutable object by setting a value for the email attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for email
      Returns:
      A modified copy or the this object
    • equals

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

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

      public static UserEmailParams of(String email)
      Construct a new immutable UserEmailParams instance.
      Parameters:
      email - The value for the email attribute
      Returns:
      An immutable UserEmailParams instance
    • copyOf

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

      public static UserEmailParams.Builder builder()
      Creates a builder for UserEmailParams.
       UserEmailParams.builder()
          .setEmail(String) // required email
          .build();
       
      Returns:
      A new UserEmailParams builder