Class UserBuilder
java.lang.Object
com.dabsquared.gitlabjenkins.gitlab.hook.model.builder.generated.UserBuilder
- All Implemented Interfaces:
Cloneable
-
Field Summary
-
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 UserBuilderwithAvatarUrl
(String value) Sets the default value for the avatarUrl property.Sets 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 -
value$avatarUrl$java$lang$String
-
isSet$avatarUrl$java$lang$String
protected boolean isSet$avatarUrl$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
-
withAvatarUrl
Sets the default value for the avatarUrl 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
-