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 Details

    • from

      public final ExternalCallsUser.Builder from(ExternalCallsUserIF instance)
      Fill a builder with attribute values from the provided ExternalCallsUserIF instance. 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:
      this builder for use in a chained invocation
    • setExternalId

      public final ExternalCallsUser.Builder setExternalId(String externalId)
      Initializes the value for the externalId attribute.
      Parameters:
      externalId - The value for externalId
      Returns:
      this builder for use in a chained invocation
    • setDisplayName

      public final ExternalCallsUser.Builder setDisplayName(String displayName)
      Initializes the value for the displayName attribute.
      Parameters:
      displayName - The value for displayName
      Returns:
      this builder for use in a chained invocation
    • setAvatarUrl

      public final ExternalCallsUser.Builder setAvatarUrl(String avatarUrl)
      Initializes the value for the avatarUrl attribute.
      Parameters:
      avatarUrl - The value for avatarUrl
      Returns:
      this builder for use in a chained invocation
    • build

      public ExternalCallsUser build()
      Builds a new ExternalCallsUser.
      Returns:
      An immutable instance of ExternalCallsUser
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing