Class ChannelsInfoParams.Builder

java.lang.Object
com.hubspot.slack.client.methods.params.channels.ChannelsInfoParams.Builder
Enclosing class:
ChannelsInfoParams

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

      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.params.channels.AbstractChannelsInfoParams instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setChannelId

      public final ChannelsInfoParams.Builder setChannelId(String channelId)
      Initializes the value for the channelId attribute.
      Parameters:
      channelId - The value for channelId
      Returns:
      this builder for use in a chained invocation
    • setIncludeLocale

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

      public final ChannelsInfoParams.Builder setIncludeLocale(Optional<Boolean> includeLocale)
      Initializes the optional value includeLocale to includeLocale.
      Parameters:
      includeLocale - The value for includeLocale
      Returns:
      this builder for use in a chained invocation
    • build

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