Class SlackCallsUser

java.lang.Object
com.hubspot.slack.client.models.calls.SlackCallsUser
All Implemented Interfaces:
SlackCallsUserIF, SlackInternalOrExternalUser

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

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

  • Method Details

    • getSlackId

      public String getSlackId()
      Specified by:
      getSlackId in interface SlackCallsUserIF
      Returns:
      The value of the slackId attribute
    • withSlackId

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

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

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

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

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

      public static SlackCallsUser.Builder builder()
      Creates a builder for SlackCallsUser.
       SlackCallsUser.builder()
          .setSlackId(String) // required slackId
          .build();
       
      Returns:
      A new SlackCallsUser builder