com.spotinst.sdkjava.model.bl.admin.organization.User Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.bl.admin.organization;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.HashSet;
import java.util.Set;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class User {
@JsonIgnore
private Set isSet;
private String firstName;
private String lastName;
private String email;
private String password;
private String role;
private String displayName;
private Integer id;
private String organizationId;
private String userId;
private String personalAccessToken;
public User() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
isSet.add("firstName");
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
isSet.add("lastName");
this.lastName = lastName;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
isSet.add("email");
this.email = email;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
isSet.add("password");
this.password = password;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
isSet.add("id");
this.id = id;
}
public String getOrganizationId() {
return organizationId;
}
public void setOrganizationId(String organizationId) {
isSet.add("organizationId");
this.organizationId = organizationId;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
isSet.add("userId");
this.userId = userId;
}
public String getRole() {
return role;
}
public void setRole(String role) {
isSet.add("role;");
this.role = role;
}
public String getDisplayName() {
return displayName;
}
public void setDisplayName(String displayName) {
isSet.add("displayName");
this.displayName = displayName;
}
public String getPersonalAccessToken() {
return personalAccessToken;
}
public void setPersonalAccessToken(String personalAccessToken) {
isSet.add("personalAccessToken");
this.personalAccessToken = personalAccessToken;
}
public static class Builder {
private User user;
private Builder() {
this.user = new User();
}
public static Builder get() {
return new Builder();
}
public Builder setFirstName(final String firstName) {
user.setFirstName(firstName);
return this;
}
public Builder setLastName(final String lastName) {
user.setLastName(lastName);
return this;
}
public Builder setEmail(final String email) {
user.setEmail(email);
return this;
}
public Builder setPassword(final String password) {
user.setPassword(password);
return this;
}
public Builder setId(final Integer id) {
user.setId(id);
return this;
}
public Builder setOrganizationId(final String orgId) {
user.setOrganizationId(orgId);
return this;
}
public Builder setUserId(final String userId) {
user.setUserId(userId);
return this;
}
public Builder setRole(final String role) {
user.setRole(role);
return this;
}
public Builder setDisplayName(final String displayName) {
user.setDisplayName(displayName);
return this;
}
public Builder setPersonalAccessToken(final String personalAccessToken) {
user.setPersonalAccessToken(personalAccessToken);
return this;
}
public User build() {
return user;
}
}
@JsonIgnore
public boolean isFirstNameSet() {
return isSet.contains("firstName");
}
@JsonIgnore
public boolean isLastNameSet() {
return isSet.contains("lastName");
}
@JsonIgnore
public boolean isEmailSet() {
return isSet.contains("email");
}
@JsonIgnore
public boolean isPasswordSet() {
return isSet.contains("password");
}
@JsonIgnore
public boolean isIdSet() {
return isSet.contains("id");
}
@JsonIgnore
public boolean isOrganizationIdSet() {
return isSet.contains("organizationId");
}
@JsonIgnore
public boolean isRoleSet() {
return isSet.contains("role");
}
@JsonIgnore
public boolean isDisplayNameSet() {
return isSet.contains("displayName");
}
@JsonIgnore
public boolean isPersonalAccessTokenSet() {
return isSet.contains("personalAccessToken");
}
@JsonIgnore
public boolean isUserIdSet() {
return isSet.contains("userId");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy