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().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ExternalCallsUser.Builderbuilder()Creates a builder forExternalCallsUser.static ExternalCallsUsercopyOf(ExternalCallsUserIF instance) Creates an immutable copy of aExternalCallsUserIFvalue.booleanThis instance is equal to all instances ofExternalCallsUserthat have equal attribute values.inthashCode()Computes a hash code from attributes:externalId,displayName,avatarUrl.toString()Prints the immutable valueExternalCallsUserwith attribute values.final ExternalCallsUserwithAvatarUrl(String value) Copy the current immutable object by setting a value for theavatarUrlattribute.final ExternalCallsUserwithDisplayName(String value) Copy the current immutable object by setting a value for thedisplayNameattribute.final ExternalCallsUserwithExternalId(String value) Copy the current immutable object by setting a value for theexternalIdattribute.
-
Method Details
-
getExternalId
- Specified by:
getExternalIdin interfaceExternalCallsUserIF- Returns:
- The value of the
externalIdattribute
-
getDisplayName
- Specified by:
getDisplayNamein interfaceExternalCallsUserIF- Returns:
- The value of the
displayNameattribute
-
getAvatarUrl
- Specified by:
getAvatarUrlin interfaceExternalCallsUserIF- Returns:
- The value of the
avatarUrlattribute
-
withExternalId
Copy the current immutable object by setting a value for theexternalIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for externalId- Returns:
- A modified copy or the
thisobject
-
withDisplayName
Copy the current immutable object by setting a value for thedisplayNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for displayName- Returns:
- A modified copy or the
thisobject
-
withAvatarUrl
Copy the current immutable object by setting a value for theavatarUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for avatarUrl- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofExternalCallsUserthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:externalId,displayName,avatarUrl. -
toString
Prints the immutable valueExternalCallsUserwith attribute values. -
copyOf
Creates an immutable copy of aExternalCallsUserIFvalue. 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
Creates a builder forExternalCallsUser.ExternalCallsUser.builder() .setExternalId(String) // requiredexternalId.setDisplayName(String) // requireddisplayName.setAvatarUrl(String) // requiredavatarUrl.build();- Returns:
- A new ExternalCallsUser builder
-