com.yahoo.athenz.zms.ServiceIdentity 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 java.util.Map;
import com.yahoo.rdl.*;
//
// ServiceIdentity - The representation of the service identity object.
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class ServiceIdentity {
public String name;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String description;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public List publicKeys;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String providerEndpoint;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Timestamp modified;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String executable;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public List hosts;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String user;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String group;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Map tags;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public ResourceServiceIdentityOwnership resourceOwnership;
public ServiceIdentity setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
public ServiceIdentity setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return description;
}
public ServiceIdentity setPublicKeys(List publicKeys) {
this.publicKeys = publicKeys;
return this;
}
public List getPublicKeys() {
return publicKeys;
}
public ServiceIdentity setProviderEndpoint(String providerEndpoint) {
this.providerEndpoint = providerEndpoint;
return this;
}
public String getProviderEndpoint() {
return providerEndpoint;
}
public ServiceIdentity setModified(Timestamp modified) {
this.modified = modified;
return this;
}
public Timestamp getModified() {
return modified;
}
public ServiceIdentity setExecutable(String executable) {
this.executable = executable;
return this;
}
public String getExecutable() {
return executable;
}
public ServiceIdentity setHosts(List hosts) {
this.hosts = hosts;
return this;
}
public List getHosts() {
return hosts;
}
public ServiceIdentity setUser(String user) {
this.user = user;
return this;
}
public String getUser() {
return user;
}
public ServiceIdentity setGroup(String group) {
this.group = group;
return this;
}
public String getGroup() {
return group;
}
public ServiceIdentity setTags(Map tags) {
this.tags = tags;
return this;
}
public Map getTags() {
return tags;
}
public ServiceIdentity setResourceOwnership(ResourceServiceIdentityOwnership resourceOwnership) {
this.resourceOwnership = resourceOwnership;
return this;
}
public ResourceServiceIdentityOwnership getResourceOwnership() {
return resourceOwnership;
}
@Override
public boolean equals(Object another) {
if (this != another) {
if (another == null || another.getClass() != ServiceIdentity.class) {
return false;
}
ServiceIdentity a = (ServiceIdentity) another;
if (name == null ? a.name != null : !name.equals(a.name)) {
return false;
}
if (description == null ? a.description != null : !description.equals(a.description)) {
return false;
}
if (publicKeys == null ? a.publicKeys != null : !publicKeys.equals(a.publicKeys)) {
return false;
}
if (providerEndpoint == null ? a.providerEndpoint != null : !providerEndpoint.equals(a.providerEndpoint)) {
return false;
}
if (modified == null ? a.modified != null : !modified.equals(a.modified)) {
return false;
}
if (executable == null ? a.executable != null : !executable.equals(a.executable)) {
return false;
}
if (hosts == null ? a.hosts != null : !hosts.equals(a.hosts)) {
return false;
}
if (user == null ? a.user != null : !user.equals(a.user)) {
return false;
}
if (group == null ? a.group != null : !group.equals(a.group)) {
return false;
}
if (tags == null ? a.tags != null : !tags.equals(a.tags)) {
return false;
}
if (resourceOwnership == null ? a.resourceOwnership != null : !resourceOwnership.equals(a.resourceOwnership)) {
return false;
}
}
return true;
}
}