Class ExternalCallsUser.Builder
java.lang.Object
com.hubspot.slack.client.models.calls.ExternalCallsUser.Builder
- Enclosing class:
ExternalCallsUser
@Generated(from="ExternalCallsUserIF",
generator="Immutables")
@NotThreadSafe
public static final class ExternalCallsUser.Builder
extends Object
Builds instances of type
ExternalCallsUser.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newExternalCallsUser.from(ExternalCallsUserIF instance) Fill a builder with attribute values from the providedExternalCallsUserIFinstance.setAvatarUrl(String avatarUrl) Initializes the value for theavatarUrlattribute.setDisplayName(String displayName) Initializes the value for thedisplayNameattribute.setExternalId(String externalId) Initializes the value for theexternalIdattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedExternalCallsUserIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setExternalId
Initializes the value for theexternalIdattribute.- Parameters:
externalId- The value for externalId- Returns:
thisbuilder for use in a chained invocation
-
setDisplayName
Initializes the value for thedisplayNameattribute.- Parameters:
displayName- The value for displayName- Returns:
thisbuilder for use in a chained invocation
-
setAvatarUrl
Initializes the value for theavatarUrlattribute.- Parameters:
avatarUrl- The value for avatarUrl- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newExternalCallsUser.- Returns:
- An immutable instance of ExternalCallsUser
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-