com.yahoo.athenz.zms.Role Maven / Gradle / Ivy
//
// This file generated by rdl 1.5.2. Do not modify!
//
package com.yahoo.athenz.zms;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.List;
import java.util.Map;
import com.yahoo.rdl.*;
//
// Role - The representation for a Role with set of members. The members
// (Array) field is deprecated and not used in role objects since it
// incorrectly lists all the members in the role without taking into account if
// the member is expired or possibly disabled. Thus, using this attribute will
// result in incorrect authorization checks by the client and, thus, it's no
// longer being populated. All applications must use the roleMembers field and
// take into account all the attributes of the member.
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class Role {
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Boolean selfServe;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Integer memberExpiryDays;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Integer tokenExpiryMins;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Integer certExpiryMins;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_NULL)
public String signAlgorithm;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Integer serviceExpiryDays;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Integer memberReviewDays;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Integer serviceReviewDays;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Boolean reviewEnabled;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_NULL)
public String notifyRoles;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_NULL)
public String userAuthorityFilter;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_NULL)
public String userAuthorityExpiration;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Integer groupExpiryDays;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Integer groupReviewDays;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Map tags;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_NULL)
public String description;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Boolean auditEnabled;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Boolean deleteProtection;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Timestamp lastReviewedDate;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Boolean selfRenew;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Integer selfRenewMins;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Integer maxMembers;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public ResourceRoleOwnership resourceOwnership;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_NULL)
public String principalDomainFilter;
public String name;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Timestamp modified;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public List members;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public List roleMembers;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String trust;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public List auditLog;
public Role setSelfServe(Boolean selfServe) {
this.selfServe = selfServe;
return this;
}
public Boolean getSelfServe() {
return selfServe;
}
public Role setMemberExpiryDays(Integer memberExpiryDays) {
this.memberExpiryDays = memberExpiryDays;
return this;
}
public Integer getMemberExpiryDays() {
return memberExpiryDays;
}
public Role setTokenExpiryMins(Integer tokenExpiryMins) {
this.tokenExpiryMins = tokenExpiryMins;
return this;
}
public Integer getTokenExpiryMins() {
return tokenExpiryMins;
}
public Role setCertExpiryMins(Integer certExpiryMins) {
this.certExpiryMins = certExpiryMins;
return this;
}
public Integer getCertExpiryMins() {
return certExpiryMins;
}
public Role setSignAlgorithm(String signAlgorithm) {
this.signAlgorithm = signAlgorithm;
return this;
}
public String getSignAlgorithm() {
return signAlgorithm;
}
public Role setServiceExpiryDays(Integer serviceExpiryDays) {
this.serviceExpiryDays = serviceExpiryDays;
return this;
}
public Integer getServiceExpiryDays() {
return serviceExpiryDays;
}
public Role setMemberReviewDays(Integer memberReviewDays) {
this.memberReviewDays = memberReviewDays;
return this;
}
public Integer getMemberReviewDays() {
return memberReviewDays;
}
public Role setServiceReviewDays(Integer serviceReviewDays) {
this.serviceReviewDays = serviceReviewDays;
return this;
}
public Integer getServiceReviewDays() {
return serviceReviewDays;
}
public Role setReviewEnabled(Boolean reviewEnabled) {
this.reviewEnabled = reviewEnabled;
return this;
}
public Boolean getReviewEnabled() {
return reviewEnabled;
}
public Role setNotifyRoles(String notifyRoles) {
this.notifyRoles = notifyRoles;
return this;
}
public String getNotifyRoles() {
return notifyRoles;
}
public Role setUserAuthorityFilter(String userAuthorityFilter) {
this.userAuthorityFilter = userAuthorityFilter;
return this;
}
public String getUserAuthorityFilter() {
return userAuthorityFilter;
}
public Role setUserAuthorityExpiration(String userAuthorityExpiration) {
this.userAuthorityExpiration = userAuthorityExpiration;
return this;
}
public String getUserAuthorityExpiration() {
return userAuthorityExpiration;
}
public Role setGroupExpiryDays(Integer groupExpiryDays) {
this.groupExpiryDays = groupExpiryDays;
return this;
}
public Integer getGroupExpiryDays() {
return groupExpiryDays;
}
public Role setGroupReviewDays(Integer groupReviewDays) {
this.groupReviewDays = groupReviewDays;
return this;
}
public Integer getGroupReviewDays() {
return groupReviewDays;
}
public Role setTags(Map tags) {
this.tags = tags;
return this;
}
public Map getTags() {
return tags;
}
public Role setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return description;
}
public Role setAuditEnabled(Boolean auditEnabled) {
this.auditEnabled = auditEnabled;
return this;
}
public Boolean getAuditEnabled() {
return auditEnabled;
}
public Role setDeleteProtection(Boolean deleteProtection) {
this.deleteProtection = deleteProtection;
return this;
}
public Boolean getDeleteProtection() {
return deleteProtection;
}
public Role setLastReviewedDate(Timestamp lastReviewedDate) {
this.lastReviewedDate = lastReviewedDate;
return this;
}
public Timestamp getLastReviewedDate() {
return lastReviewedDate;
}
public Role setSelfRenew(Boolean selfRenew) {
this.selfRenew = selfRenew;
return this;
}
public Boolean getSelfRenew() {
return selfRenew;
}
public Role setSelfRenewMins(Integer selfRenewMins) {
this.selfRenewMins = selfRenewMins;
return this;
}
public Integer getSelfRenewMins() {
return selfRenewMins;
}
public Role setMaxMembers(Integer maxMembers) {
this.maxMembers = maxMembers;
return this;
}
public Integer getMaxMembers() {
return maxMembers;
}
public Role setResourceOwnership(ResourceRoleOwnership resourceOwnership) {
this.resourceOwnership = resourceOwnership;
return this;
}
public ResourceRoleOwnership getResourceOwnership() {
return resourceOwnership;
}
public Role setPrincipalDomainFilter(String principalDomainFilter) {
this.principalDomainFilter = principalDomainFilter;
return this;
}
public String getPrincipalDomainFilter() {
return principalDomainFilter;
}
public Role setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
public Role setModified(Timestamp modified) {
this.modified = modified;
return this;
}
public Timestamp getModified() {
return modified;
}
public Role setMembers(List members) {
this.members = members;
return this;
}
public List getMembers() {
return members;
}
public Role setRoleMembers(List roleMembers) {
this.roleMembers = roleMembers;
return this;
}
public List getRoleMembers() {
return roleMembers;
}
public Role setTrust(String trust) {
this.trust = trust;
return this;
}
public String getTrust() {
return trust;
}
public Role setAuditLog(List auditLog) {
this.auditLog = auditLog;
return this;
}
public List getAuditLog() {
return auditLog;
}
@Override
public boolean equals(Object another) {
if (this != another) {
if (another == null || another.getClass() != Role.class) {
return false;
}
Role a = (Role) another;
if (selfServe == null ? a.selfServe != null : !selfServe.equals(a.selfServe)) {
return false;
}
if (memberExpiryDays == null ? a.memberExpiryDays != null : !memberExpiryDays.equals(a.memberExpiryDays)) {
return false;
}
if (tokenExpiryMins == null ? a.tokenExpiryMins != null : !tokenExpiryMins.equals(a.tokenExpiryMins)) {
return false;
}
if (certExpiryMins == null ? a.certExpiryMins != null : !certExpiryMins.equals(a.certExpiryMins)) {
return false;
}
if (signAlgorithm == null ? a.signAlgorithm != null : !signAlgorithm.equals(a.signAlgorithm)) {
return false;
}
if (serviceExpiryDays == null ? a.serviceExpiryDays != null : !serviceExpiryDays.equals(a.serviceExpiryDays)) {
return false;
}
if (memberReviewDays == null ? a.memberReviewDays != null : !memberReviewDays.equals(a.memberReviewDays)) {
return false;
}
if (serviceReviewDays == null ? a.serviceReviewDays != null : !serviceReviewDays.equals(a.serviceReviewDays)) {
return false;
}
if (reviewEnabled == null ? a.reviewEnabled != null : !reviewEnabled.equals(a.reviewEnabled)) {
return false;
}
if (notifyRoles == null ? a.notifyRoles != null : !notifyRoles.equals(a.notifyRoles)) {
return false;
}
if (userAuthorityFilter == null ? a.userAuthorityFilter != null : !userAuthorityFilter.equals(a.userAuthorityFilter)) {
return false;
}
if (userAuthorityExpiration == null ? a.userAuthorityExpiration != null : !userAuthorityExpiration.equals(a.userAuthorityExpiration)) {
return false;
}
if (groupExpiryDays == null ? a.groupExpiryDays != null : !groupExpiryDays.equals(a.groupExpiryDays)) {
return false;
}
if (groupReviewDays == null ? a.groupReviewDays != null : !groupReviewDays.equals(a.groupReviewDays)) {
return false;
}
if (tags == null ? a.tags != null : !tags.equals(a.tags)) {
return false;
}
if (description == null ? a.description != null : !description.equals(a.description)) {
return false;
}
if (auditEnabled == null ? a.auditEnabled != null : !auditEnabled.equals(a.auditEnabled)) {
return false;
}
if (deleteProtection == null ? a.deleteProtection != null : !deleteProtection.equals(a.deleteProtection)) {
return false;
}
if (lastReviewedDate == null ? a.lastReviewedDate != null : !lastReviewedDate.equals(a.lastReviewedDate)) {
return false;
}
if (selfRenew == null ? a.selfRenew != null : !selfRenew.equals(a.selfRenew)) {
return false;
}
if (selfRenewMins == null ? a.selfRenewMins != null : !selfRenewMins.equals(a.selfRenewMins)) {
return false;
}
if (maxMembers == null ? a.maxMembers != null : !maxMembers.equals(a.maxMembers)) {
return false;
}
if (resourceOwnership == null ? a.resourceOwnership != null : !resourceOwnership.equals(a.resourceOwnership)) {
return false;
}
if (principalDomainFilter == null ? a.principalDomainFilter != null : !principalDomainFilter.equals(a.principalDomainFilter)) {
return false;
}
if (name == null ? a.name != null : !name.equals(a.name)) {
return false;
}
if (modified == null ? a.modified != null : !modified.equals(a.modified)) {
return false;
}
if (members == null ? a.members != null : !members.equals(a.members)) {
return false;
}
if (roleMembers == null ? a.roleMembers != null : !roleMembers.equals(a.roleMembers)) {
return false;
}
if (trust == null ? a.trust != null : !trust.equals(a.trust)) {
return false;
}
if (auditLog == null ? a.auditLog != null : !auditLog.equals(a.auditLog)) {
return false;
}
}
return true;
}
}