Class Call.Builder

java.lang.Object
com.hubspot.slack.client.models.blocks.Call.Builder
Enclosing class:
Call

@Generated(from="CallIF", generator="Immutables") @NotThreadSafe public static final class Call.Builder extends Object
Builds instances of type Call. 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 Call.Builder from(Block instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.blocks.Block instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final Call.Builder from(CallIF instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.blocks.CallIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setBlockId

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

      public final Call.Builder setBlockId(Optional<String> blockId)
      Initializes the optional value blockId to blockId.
      Parameters:
      blockId - The value for blockId
      Returns:
      this builder for use in a chained invocation
    • setCallId

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

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