Class UsersInfoParams.Builder

java.lang.Object
com.hubspot.slack.client.methods.params.users.UsersInfoParams.Builder
Enclosing class:
UsersInfoParams

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

      public final UsersInfoParams.Builder from(HasUser instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.interceptor.HasUser instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setUserId

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

      public final UsersInfoParams.Builder setIncludeLocale(boolean includeLocale)
      Initializes the value for the includeLocale attribute.

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

      Parameters:
      includeLocale - The value for includeLocale
      Returns:
      this builder for use in a chained invocation
    • build

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