com.yahoo.athenz.zms.GroupMeta Maven / Gradle / Ivy
The newest version!
//
// 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.Map;
import com.yahoo.rdl.*;
//
// GroupMeta - Set of metadata attributes that all groups may have and can be
// changed by domain admins.
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class GroupMeta {
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Boolean selfServe;
@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 memberExpiryDays;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Integer serviceExpiryDays;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Map tags;
@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 ResourceGroupOwnership resourceOwnership;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_NULL)
public String principalDomainFilter;
public GroupMeta setSelfServe(Boolean selfServe) {
this.selfServe = selfServe;
return this;
}
public Boolean getSelfServe() {
return selfServe;
}
public GroupMeta setReviewEnabled(Boolean reviewEnabled) {
this.reviewEnabled = reviewEnabled;
return this;
}
public Boolean getReviewEnabled() {
return reviewEnabled;
}
public GroupMeta setNotifyRoles(String notifyRoles) {
this.notifyRoles = notifyRoles;
return this;
}
public String getNotifyRoles() {
return notifyRoles;
}
public GroupMeta setUserAuthorityFilter(String userAuthorityFilter) {
this.userAuthorityFilter = userAuthorityFilter;
return this;
}
public String getUserAuthorityFilter() {
return userAuthorityFilter;
}
public GroupMeta setUserAuthorityExpiration(String userAuthorityExpiration) {
this.userAuthorityExpiration = userAuthorityExpiration;
return this;
}
public String getUserAuthorityExpiration() {
return userAuthorityExpiration;
}
public GroupMeta setMemberExpiryDays(Integer memberExpiryDays) {
this.memberExpiryDays = memberExpiryDays;
return this;
}
public Integer getMemberExpiryDays() {
return memberExpiryDays;
}
public GroupMeta setServiceExpiryDays(Integer serviceExpiryDays) {
this.serviceExpiryDays = serviceExpiryDays;
return this;
}
public Integer getServiceExpiryDays() {
return serviceExpiryDays;
}
public GroupMeta setTags(Map tags) {
this.tags = tags;
return this;
}
public Map getTags() {
return tags;
}
public GroupMeta setAuditEnabled(Boolean auditEnabled) {
this.auditEnabled = auditEnabled;
return this;
}
public Boolean getAuditEnabled() {
return auditEnabled;
}
public GroupMeta setDeleteProtection(Boolean deleteProtection) {
this.deleteProtection = deleteProtection;
return this;
}
public Boolean getDeleteProtection() {
return deleteProtection;
}
public GroupMeta setLastReviewedDate(Timestamp lastReviewedDate) {
this.lastReviewedDate = lastReviewedDate;
return this;
}
public Timestamp getLastReviewedDate() {
return lastReviewedDate;
}
public GroupMeta setSelfRenew(Boolean selfRenew) {
this.selfRenew = selfRenew;
return this;
}
public Boolean getSelfRenew() {
return selfRenew;
}
public GroupMeta setSelfRenewMins(Integer selfRenewMins) {
this.selfRenewMins = selfRenewMins;
return this;
}
public Integer getSelfRenewMins() {
return selfRenewMins;
}
public GroupMeta setMaxMembers(Integer maxMembers) {
this.maxMembers = maxMembers;
return this;
}
public Integer getMaxMembers() {
return maxMembers;
}
public GroupMeta setResourceOwnership(ResourceGroupOwnership resourceOwnership) {
this.resourceOwnership = resourceOwnership;
return this;
}
public ResourceGroupOwnership getResourceOwnership() {
return resourceOwnership;
}
public GroupMeta setPrincipalDomainFilter(String principalDomainFilter) {
this.principalDomainFilter = principalDomainFilter;
return this;
}
public String getPrincipalDomainFilter() {
return principalDomainFilter;
}
@Override
public boolean equals(Object another) {
if (this != another) {
if (another == null || another.getClass() != GroupMeta.class) {
return false;
}
GroupMeta a = (GroupMeta) another;
if (selfServe == null ? a.selfServe != null : !selfServe.equals(a.selfServe)) {
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 (memberExpiryDays == null ? a.memberExpiryDays != null : !memberExpiryDays.equals(a.memberExpiryDays)) {
return false;
}
if (serviceExpiryDays == null ? a.serviceExpiryDays != null : !serviceExpiryDays.equals(a.serviceExpiryDays)) {
return false;
}
if (tags == null ? a.tags != null : !tags.equals(a.tags)) {
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;
}
}
return true;
}
}