Class ExternalCallsUser

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

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

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

  • Method Details

    • getExternalId

      public String getExternalId()
      Specified by:
      getExternalId in interface ExternalCallsUserIF
      Returns:
      The value of the externalId attribute
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface ExternalCallsUserIF
      Returns:
      The value of the displayName attribute
    • getAvatarUrl

      public String getAvatarUrl()
      Specified by:
      getAvatarUrl in interface ExternalCallsUserIF
      Returns:
      The value of the avatarUrl attribute
    • withExternalId

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

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

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

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

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

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

      public static ExternalCallsUser.Builder builder()
      Creates a builder for ExternalCallsUser.
       ExternalCallsUser.builder()
          .setExternalId(String) // required externalId
          .setDisplayName(String) // required displayName
          .setAvatarUrl(String) // required avatarUrl
          .build();
       
      Returns:
      A new ExternalCallsUser builder