Class UserBuilder
java.lang.Object
com.dabsquared.gitlabjenkins.gitlab.api.model.builder.generated.UserBuilder
- All Implemented Interfaces:
Cloneable
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected boolean
protected boolean
protected UserBuilder
protected String
protected Integer
protected String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a newUser
based on this builder's settings.but()
Returns a clone of this builder.clone()
Returns a clone of this builder.static UserBuilder
user()
Factory Method to construct a UserBuilderSets the default value for the email property.Sets the default value for the id property.Sets the default value for the name property.withUsername
(String value) Sets the default value for the username property.
-
Field Details
-
self
-
value$id$java$lang$Integer
-
isSet$id$java$lang$Integer
protected boolean isSet$id$java$lang$Integer -
value$name$java$lang$String
-
isSet$name$java$lang$String
protected boolean isSet$name$java$lang$String -
value$username$java$lang$String
-
isSet$username$java$lang$String
protected boolean isSet$username$java$lang$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 newUserBuilder
.
-
-
Method Details
-
user
Factory Method to construct a UserBuilder- Returns:
- a new UserBuilder
-
withId
Sets the default value for the id property.- Parameters:
value
- the default value- Returns:
- this builder
-
withName
Sets the default value for the name property.- Parameters:
value
- the default value- Returns:
- this builder
-
withUsername
Sets the default value for the username property.- Parameters:
value
- the default value- Returns:
- this builder
-
withEmail
Sets the default value for the email property.- Parameters:
value
- the default value- Returns:
- this builder
-
clone
Returns a clone of this builder. -
but
Returns a clone of this builder.- Returns:
- the clone
-
build
Creates a newUser
based on this builder's settings.- Returns:
- the created User
-