java.lang.Object
com.dabsquared.gitlabjenkins.gitlab.api.model.builder.generated.UserBuilder
All Implemented Interfaces:
Cloneable

@Generated("PojoBuilder") public class UserBuilder extends Object implements Cloneable
  • Field Details

    • self

      protected UserBuilder self
    • value$id$java$lang$Integer

      protected Integer value$id$java$lang$Integer
    • isSet$id$java$lang$Integer

      protected boolean isSet$id$java$lang$Integer
    • value$name$java$lang$String

      protected String value$name$java$lang$String
    • isSet$name$java$lang$String

      protected boolean isSet$name$java$lang$String
    • value$username$java$lang$String

      protected String value$username$java$lang$String
    • isSet$username$java$lang$String

      protected boolean isSet$username$java$lang$String
    • value$email$java$lang$String

      protected String value$email$java$lang$String
    • isSet$email$java$lang$String

      protected boolean isSet$email$java$lang$String
  • Constructor Details

    • UserBuilder

      public UserBuilder()
      Creates a new UserBuilder.
  • Method Details

    • user

      public static UserBuilder user()
      Factory Method to construct a UserBuilder
      Returns:
      a new UserBuilder
    • withId

      public UserBuilder withId(Integer value)
      Sets the default value for the id property.
      Parameters:
      value - the default value
      Returns:
      this builder
    • withName

      public UserBuilder withName(String value)
      Sets the default value for the name property.
      Parameters:
      value - the default value
      Returns:
      this builder
    • withUsername

      public UserBuilder withUsername(String value)
      Sets the default value for the username property.
      Parameters:
      value - the default value
      Returns:
      this builder
    • withEmail

      public UserBuilder withEmail(String value)
      Sets the default value for the email property.
      Parameters:
      value - the default value
      Returns:
      this builder
    • clone

      @GwtIncompatible public Object clone()
      Returns a clone of this builder.
      Overrides:
      clone in class Object
      Returns:
      the clone
    • but

      @GwtIncompatible public UserBuilder but()
      Returns a clone of this builder.
      Returns:
      the clone
    • build

      public User build()
      Creates a new User based on this builder's settings.
      Returns:
      the created User