Class AbstractServiceUserRequest.AbstractBuilder<B extends AbstractServiceUserRequest.AbstractBuilder<B>>

java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.user.AbstractServiceUserRequest.AbstractBuilder<B>
Direct Known Subclasses:
ServiceUserCreateRequest.Builder, ServiceUserUpdateRequest.Builder
Enclosing class:
AbstractServiceUserRequest

protected abstract static class AbstractServiceUserRequest.AbstractBuilder<B extends AbstractServiceUserRequest.AbstractBuilder<B>> extends BuilderSupport
  • Constructor Details

    • AbstractBuilder

      protected AbstractBuilder()
    • AbstractBuilder

      protected AbstractBuilder(@Nonnull ServiceUser user)
  • Method Details

    • active

      @Nonnull public B active(boolean value)
      Parameters:
      value - whether the service user should be active
      Returns:
      this
    • displayName

      @Nonnull public B displayName(@Nullable String value)
      Parameters:
      value - the display name to set
      Returns:
      this
    • emailAddress

      @Nonnull public B emailAddress(@Nullable String value)
      Parameters:
      value - the email address to set
      Returns:
      this
    • label

      @Nonnull public B label(@Nullable String value)
      Parameters:
      value - the label to set
      Returns:
      this
    • name

      @Nonnull public B name(@Nullable String value)
      Parameters:
      value - the username to set
      Returns:
      this
    • self

      protected abstract B self()