com.yahoo.athenz.zms.Tenancy 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.List;
import com.yahoo.rdl.*;
//
// Tenancy - A representation of tenant.
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class Tenancy {
public String domain;
public String service;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public List resourceGroups;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Boolean createAdminRole;
public Tenancy setDomain(String domain) {
this.domain = domain;
return this;
}
public String getDomain() {
return domain;
}
public Tenancy setService(String service) {
this.service = service;
return this;
}
public String getService() {
return service;
}
public Tenancy setResourceGroups(List resourceGroups) {
this.resourceGroups = resourceGroups;
return this;
}
public List getResourceGroups() {
return resourceGroups;
}
public Tenancy setCreateAdminRole(Boolean createAdminRole) {
this.createAdminRole = createAdminRole;
return this;
}
public Boolean getCreateAdminRole() {
return createAdminRole;
}
@Override
public boolean equals(Object another) {
if (this != another) {
if (another == null || another.getClass() != Tenancy.class) {
return false;
}
Tenancy a = (Tenancy) another;
if (domain == null ? a.domain != null : !domain.equals(a.domain)) {
return false;
}
if (service == null ? a.service != null : !service.equals(a.service)) {
return false;
}
if (resourceGroups == null ? a.resourceGroups != null : !resourceGroups.equals(a.resourceGroups)) {
return false;
}
if (createAdminRole == null ? a.createAdminRole != null : !createAdminRole.equals(a.createAdminRole)) {
return false;
}
}
return true;
}
//
// sets up the instance according to its default field values, if any
//
public Tenancy init() {
if (createAdminRole == null) {
createAdminRole = true;
}
return this;
}
}