Class ImOpenResponse.Builder

java.lang.Object
com.hubspot.slack.client.models.response.im.ImOpenResponse.Builder
Enclosing class:
ImOpenResponse

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

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

      public final ImOpenResponse.Builder setOk(boolean ok)
      Initializes the value for the ok attribute.
      Parameters:
      ok - The value for ok
      Returns:
      this builder for use in a chained invocation
    • setResponseMetadata

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

      public final ImOpenResponse.Builder setResponseMetadata(Optional<? extends ResponseMetadata> responseMetadata)
      Initializes the optional value responseMetadata to responseMetadata.
      Parameters:
      responseMetadata - The value for responseMetadata
      Returns:
      this builder for use in a chained invocation
    • setNoOp

      public final ImOpenResponse.Builder setNoOp(boolean noOp)
      Initializes the value for the noOp attribute.

      If not set, this attribute will have a default value as returned by the initializer of noOp.

      Parameters:
      noOp - The value for noOp
      Returns:
      this builder for use in a chained invocation
    • setAlreadyOpen

      public final ImOpenResponse.Builder setAlreadyOpen(boolean alreadyOpen)
      Initializes the value for the alreadyOpen attribute.

      If not set, this attribute will have a default value as returned by the initializer of alreadyOpen.

      Parameters:
      alreadyOpen - The value for alreadyOpen
      Returns:
      this builder for use in a chained invocation
    • setChannel

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

      public final ImOpenResponse.Builder setChannel(Optional<? extends ImChannel> channel)
      Initializes the optional value channel to channel.
      Parameters:
      channel - The value for channel
      Returns:
      this builder for use in a chained invocation
    • build

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