org.gitlab4j.api.models.User Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gitlab4j-api Show documentation
Show all versions of gitlab4j-api Show documentation
GitLab4J-API (gitlab4j-api) provides a full featured Java client library for working with GitLab repositories and servers via the GitLab REST API.
package org.gitlab4j.api.models;
import java.util.Date;
import java.util.List;
import org.gitlab4j.api.utils.JacksonJson;
public class User extends AbstractUser {
private String bio;
private Boolean bot;
private Boolean canCreateGroup;
private Boolean canCreateProject;
private Integer colorSchemeId;
private Date confirmedAt;
private Date currentSignInAt;
private List customAttributes;
private Boolean external;
private String externUid;
private Integer extraSharedRunnersMinutesLimit;
private List identities;
private Boolean isAdmin;
private Date lastActivityOn;
private Date lastSignInAt;
private String linkedin;
private String location;
private String organization;
private Boolean privateProfile;
private Integer projectsLimit;
private String provider;
private String publicEmail;
private Integer sharedRunnersMinutesLimit;
private String skype;
private String state;
private Integer themeId;
private String twitter;
private Boolean twoFactorEnabled;
private String websiteUrl;
private Boolean skipConfirmation;
public String getBio() {
return bio;
}
public void setBio(String bio) {
this.bio = bio;
}
public Boolean getBot() {
return bot;
}
public void setBot(Boolean bot) {
this.bot = bot;
}
public Boolean getCanCreateGroup() {
return canCreateGroup;
}
public void setCanCreateGroup(Boolean canCreateGroup) {
this.canCreateGroup = canCreateGroup;
}
public Boolean getCanCreateProject() {
return canCreateProject;
}
public void setCanCreateProject(Boolean canCreateProject) {
this.canCreateProject = canCreateProject;
}
public Integer getColorSchemeId() {
return colorSchemeId;
}
public void setColorSchemeId(Integer colorSchemeId) {
this.colorSchemeId = colorSchemeId;
}
public Date getConfirmedAt() {
return confirmedAt;
}
public void setConfirmedAt(Date confirmedAt) {
this.confirmedAt = confirmedAt;
}
public Date getCurrentSignInAt() {
return currentSignInAt;
}
public void setCurrentSignInAt(Date currentSignInAt) {
this.currentSignInAt = currentSignInAt;
}
public Boolean getExternal() {
return external;
}
public void setExternal(Boolean external) {
this.external = external;
}
public void setExternUid(String externUid) {
this.externUid = externUid;
}
public String getExternUid() {
return this.externUid;
}
public Integer getExtraSharedRunnersMinutesLimit() {
return extraSharedRunnersMinutesLimit;
}
public void setExtraSharedRunnersMinutesLimit(Integer extraSharedRunnersMinutesLimit) {
this.extraSharedRunnersMinutesLimit = extraSharedRunnersMinutesLimit;
}
public List getIdentities() {
return identities;
}
public void setIdentities(List identities) {
this.identities = identities;
}
public Boolean getIsAdmin() {
return isAdmin;
}
public void setIsAdmin(Boolean isAdmin) {
this.isAdmin = isAdmin;
}
public Date getLastActivityOn() {
return lastActivityOn;
}
public void setLastActivityOn(Date lastActivityOn) {
this.lastActivityOn = lastActivityOn;
}
public Date getLastSignInAt() {
return lastSignInAt;
}
public void setLastSignInAt(Date lastSignInAt) {
this.lastSignInAt = lastSignInAt;
}
public String getLinkedin() {
return linkedin;
}
public void setLinkedin(String linkedin) {
this.linkedin = linkedin;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public String getOrganization() {
return organization;
}
public void setOrganization(String organization) {
this.organization = organization;
}
public Boolean getPrivateProfile() {
return privateProfile;
}
public void setPrivateProfile(Boolean privateProfile) {
this.privateProfile = privateProfile;
}
public Integer getProjectsLimit() {
return projectsLimit;
}
public void setProjectsLimit(Integer projectsLimit) {
this.projectsLimit = projectsLimit;
}
public String getProvider() {
return provider;
}
public void setProvider(String provider) {
this.provider = provider;
}
public String getPublicEmail() {
return publicEmail;
}
public void setPublicEmail(String publicEmail) {
this.publicEmail = publicEmail;
}
public Integer getSharedRunnersMinutesLimit() {
return sharedRunnersMinutesLimit;
}
public void setSharedRunnersMinutesLimit(Integer sharedRunnersMinutesLimit) {
this.sharedRunnersMinutesLimit = sharedRunnersMinutesLimit;
}
public String getSkype() {
return skype;
}
public void setSkype(String skype) {
this.skype = skype;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public Integer getThemeId() {
return themeId;
}
public void setThemeId(Integer themeId) {
this.themeId = themeId;
}
public String getTwitter() {
return twitter;
}
public void setTwitter(String twitter) {
this.twitter = twitter;
}
public Boolean getTwoFactorEnabled() {
return twoFactorEnabled;
}
public void setTwoFactorEnabled(Boolean twoFactorEnabled) {
this.twoFactorEnabled = twoFactorEnabled;
}
public String getWebsiteUrl() {
return websiteUrl;
}
public void setWebsiteUrl(String websiteUrl) {
this.websiteUrl = websiteUrl;
}
public Boolean getSkipConfirmation() {
return skipConfirmation;
}
public void setSkipConfirmation(Boolean skipConfirmation) {
this.skipConfirmation = skipConfirmation;
}
public List getCustomAttributes() {
return customAttributes;
}
public void setCustomAttributes(List customAttributes) {
this.customAttributes = customAttributes;
}
public User withBio(String bio) {
this.bio = bio;
return this;
}
public User withCanCreateGroup(Boolean canCreateGroup) {
this.canCreateGroup = canCreateGroup;
return this;
}
public User withCanCreateProject(Boolean canCreateProject) {
this.canCreateProject = canCreateProject;
return this;
}
public User withColorSchemeId(Integer colorSchemeId) {
this.colorSchemeId = colorSchemeId;
return this;
}
public User withConfirmedAt(Date confirmedAt) {
this.confirmedAt = confirmedAt;
return this;
}
public User withCurrentSignInAt(Date currentSignInAt) {
this.currentSignInAt = currentSignInAt;
return this;
}
public User withExternal(Boolean external) {
this.external = external;
return this;
}
public User withExternUid(String externUid) {
this.externUid = externUid;
return this;
}
public User withExtraSharedRunnersMinutesLimit(Integer extraSharedRunnersMinutesLimit) {
this.extraSharedRunnersMinutesLimit = extraSharedRunnersMinutesLimit;
return this;
}
public User withIdentities(List identities) {
this.identities = identities;
return this;
}
public User withIsAdmin(Boolean isAdmin) {
this.isAdmin = isAdmin;
return this;
}
public User withLastActivityOn(Date lastActivityOn) {
this.lastActivityOn = lastActivityOn;
return this;
}
public User withLastSignInAt(Date lastSignInAt) {
this.lastSignInAt = lastSignInAt;
return this;
}
public User withLinkedin(String linkedin) {
this.linkedin = linkedin;
return this;
}
public User withLocation(String location) {
this.location = location;
return this;
}
public User withOrganization(String organization) {
this.organization = organization;
return this;
}
public User withPrivateProfile(Boolean privateProfile) {
this.privateProfile = privateProfile;
return this;
}
public User withProjectsLimit(Integer projectsLimit) {
this.projectsLimit = projectsLimit;
return this;
}
public User withProvider(String provider) {
this.provider = provider;
return this;
}
public User withPublicEmail(String publicEmail) {
this.publicEmail = publicEmail;
return this;
}
public User withSharedRunnersMinutesLimit(Integer sharedRunnersMinutesLimit) {
this.sharedRunnersMinutesLimit = sharedRunnersMinutesLimit;
return this;
}
public User withSkype(String skype) {
this.skype = skype;
return this;
}
public User withState(String state) {
this.state = state;
return this;
}
public User withThemeId(Integer themeId) {
this.themeId = themeId;
return this;
}
public User withTwitter(String twitter) {
this.twitter = twitter;
return this;
}
public User withTwoFactorEnabled(Boolean twoFactorEnabled) {
this.twoFactorEnabled = twoFactorEnabled;
return this;
}
public User withWebsiteUrl(String websiteUrl) {
this.websiteUrl = websiteUrl;
return this;
}
public User withSkipConfirmation(Boolean skipConfirmation) {
this.skipConfirmation = skipConfirmation;
return this;
}
public User withCustomAttributes(List customAttributes) {
this.customAttributes = customAttributes;
return this;
}
/**
* Fluent method to set the projects_limit setting.
*
* @param projectsLimit the value for the projects_limit setting
* @deprecated Replaced by {@link #withProjectsLimit(Integer)}
* @see #withProjectsLimit(Integer)
* @return the value of this instance
*/
@Deprecated
public User withProjectLimit(Integer projectsLimit) {
return withProjectsLimit(projectsLimit);
}
/**
* Fluent method to set the shared_projects_minutes_limit setting.
*
* @param sharedRunnersMinuteLimit the value for the shared_projects_minutes_limit setting
* @deprecated Replaced by {@link #withSharedRunnersMinutesLimit(Integer)}
* @see #withSharedRunnersMinutesLimit(Integer)
* @return the value of this instance
*/
@Deprecated
public User withSharedRunnersMinuteLimit(Integer sharedRunnersMinuteLimit) {
return withSharedRunnersMinutesLimit(sharedRunnersMinuteLimit);
}
@Override
public String toString() {
return (JacksonJson.toJsonString(this));
}
}