Class CallsAddParams.Builder

java.lang.Object
com.hubspot.slack.client.methods.params.calls.CallsAddParams.Builder
Enclosing class:
CallsAddParams

@Generated(from="CallsAddParamsIF", generator="Immutables") @NotThreadSafe public static final class CallsAddParams.Builder extends Object
Builds instances of type CallsAddParams. 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 CallsAddParams.Builder from(CallsAddParamsIF instance)
      Fill a builder with attribute values from the provided CallsAddParamsIF instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setExternalUniqueId

      public final CallsAddParams.Builder setExternalUniqueId(String externalUniqueId)
      Initializes the value for the externalUniqueId attribute.
      Parameters:
      externalUniqueId - The value for externalUniqueId
      Returns:
      this builder for use in a chained invocation
    • setJoinUrl

      public final CallsAddParams.Builder setJoinUrl(String joinUrl)
      Initializes the value for the joinUrl attribute.
      Parameters:
      joinUrl - The value for joinUrl
      Returns:
      this builder for use in a chained invocation
    • setCreatedBy

      public final CallsAddParams.Builder setCreatedBy(@Nullable String createdBy)
      Initializes the optional value createdBy to createdBy.
      Parameters:
      createdBy - The value for createdBy, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setCreatedBy

      public final CallsAddParams.Builder setCreatedBy(Optional<String> createdBy)
      Initializes the optional value createdBy to createdBy.
      Parameters:
      createdBy - The value for createdBy
      Returns:
      this builder for use in a chained invocation
    • setDateStart

      public final CallsAddParams.Builder setDateStart(@Nullable Integer dateStart)
      Initializes the optional value dateStart to dateStart.
      Parameters:
      dateStart - The value for dateStart, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setDateStart

      public final CallsAddParams.Builder setDateStart(Optional<Integer> dateStart)
      Initializes the optional value dateStart to dateStart.
      Parameters:
      dateStart - The value for dateStart
      Returns:
      this builder for use in a chained invocation
    • setDesktopAppJoinUrl

      public final CallsAddParams.Builder setDesktopAppJoinUrl(@Nullable String desktopAppJoinUrl)
      Initializes the optional value desktopAppJoinUrl to desktopAppJoinUrl.
      Parameters:
      desktopAppJoinUrl - The value for desktopAppJoinUrl, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setDesktopAppJoinUrl

      public final CallsAddParams.Builder setDesktopAppJoinUrl(Optional<String> desktopAppJoinUrl)
      Initializes the optional value desktopAppJoinUrl to desktopAppJoinUrl.
      Parameters:
      desktopAppJoinUrl - The value for desktopAppJoinUrl
      Returns:
      this builder for use in a chained invocation
    • setExternalDisplayId

      public final CallsAddParams.Builder setExternalDisplayId(@Nullable String externalDisplayId)
      Initializes the optional value externalDisplayId to externalDisplayId.
      Parameters:
      externalDisplayId - The value for externalDisplayId, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setExternalDisplayId

      public final CallsAddParams.Builder setExternalDisplayId(Optional<String> externalDisplayId)
      Initializes the optional value externalDisplayId to externalDisplayId.
      Parameters:
      externalDisplayId - The value for externalDisplayId
      Returns:
      this builder for use in a chained invocation
    • setTitle

      public final CallsAddParams.Builder setTitle(@Nullable String title)
      Initializes the optional value title to title.
      Parameters:
      title - The value for title, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setTitle

      public final CallsAddParams.Builder setTitle(Optional<String> title)
      Initializes the optional value title to title.
      Parameters:
      title - The value for title
      Returns:
      this builder for use in a chained invocation
    • addUsers

      public final CallsAddParams.Builder addUsers(SlackInternalOrExternalUser element)
      Adds one element to users list.
      Parameters:
      element - A users element
      Returns:
      this builder for use in a chained invocation
    • addUsers

      public final CallsAddParams.Builder addUsers(SlackInternalOrExternalUser... elements)
      Adds elements to users list.
      Parameters:
      elements - An array of users elements
      Returns:
      this builder for use in a chained invocation
    • setUsers

      public final CallsAddParams.Builder setUsers(Iterable<? extends SlackInternalOrExternalUser> elements)
      Sets or replaces all elements for users list.
      Parameters:
      elements - An iterable of users elements
      Returns:
      this builder for use in a chained invocation
    • addAllUsers

      public final CallsAddParams.Builder addAllUsers(Iterable<? extends SlackInternalOrExternalUser> elements)
      Adds elements to users list.
      Parameters:
      elements - An iterable of users elements
      Returns:
      this builder for use in a chained invocation
    • build

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