Class UsersInfoParams

java.lang.Object
com.hubspot.slack.client.methods.params.users.UsersInfoParams
All Implemented Interfaces:
HasUser, UsersInfoParamsIF

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

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

  • Method Details

    • getUserId

      public String getUserId()
      Specified by:
      getUserId in interface HasUser
      Specified by:
      getUserId in interface UsersInfoParamsIF
      Returns:
      The value of the userId attribute
    • getIncludeLocale

      public boolean getIncludeLocale()
      Specified by:
      getIncludeLocale in interface UsersInfoParamsIF
      Returns:
      The value of the includeLocale attribute
    • withUserId

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

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

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

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

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

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

      public static UsersInfoParams.Builder builder()
      Creates a builder for UsersInfoParams.
       UsersInfoParams.builder()
          .setUserId(String) // required userId
          .setIncludeLocale(boolean) // optional includeLocale
          .build();
       
      Returns:
      A new UsersInfoParams builder