Class SetUserProfileParams.Builder

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

@Generated(from="SetUserProfileParamsIF", generator="Immutables") @NotThreadSafe public static final class SetUserProfileParams.Builder extends Object
Builds instances of type SetUserProfileParams. 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

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

      public final SetUserProfileParams.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 SetUserProfileParams.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
    • setUserProfile

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

      public final SetUserProfileParams.Builder setUserProfile(Optional<? extends UserProfile> userProfile)
      Initializes the optional value userProfile to userProfile.
      Parameters:
      userProfile - The value for userProfile
      Returns:
      this builder for use in a chained invocation
    • setName

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

      public final SetUserProfileParams.Builder setName(Optional<String> name)
      Initializes the optional value name to name.
      Parameters:
      name - The value for name
      Returns:
      this builder for use in a chained invocation
    • setValue

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

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

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