com.yahoo.athenz.zts.SSHCertRequestData Maven / Gradle / Ivy
//
// This file generated by rdl 1.5.2. Do not modify!
//
package com.yahoo.athenz.zts;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.List;
import com.yahoo.rdl.*;
//
// SSHCertRequestData -
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class SSHCertRequestData {
public List principals;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public List sources;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public List destinations;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String publicKey;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String touchPublicKey;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Integer caPubKeyAlgo;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String command;
public SSHCertRequestData setPrincipals(List principals) {
this.principals = principals;
return this;
}
public List getPrincipals() {
return principals;
}
public SSHCertRequestData setSources(List sources) {
this.sources = sources;
return this;
}
public List getSources() {
return sources;
}
public SSHCertRequestData setDestinations(List destinations) {
this.destinations = destinations;
return this;
}
public List getDestinations() {
return destinations;
}
public SSHCertRequestData setPublicKey(String publicKey) {
this.publicKey = publicKey;
return this;
}
public String getPublicKey() {
return publicKey;
}
public SSHCertRequestData setTouchPublicKey(String touchPublicKey) {
this.touchPublicKey = touchPublicKey;
return this;
}
public String getTouchPublicKey() {
return touchPublicKey;
}
public SSHCertRequestData setCaPubKeyAlgo(Integer caPubKeyAlgo) {
this.caPubKeyAlgo = caPubKeyAlgo;
return this;
}
public Integer getCaPubKeyAlgo() {
return caPubKeyAlgo;
}
public SSHCertRequestData setCommand(String command) {
this.command = command;
return this;
}
public String getCommand() {
return command;
}
@Override
public boolean equals(Object another) {
if (this != another) {
if (another == null || another.getClass() != SSHCertRequestData.class) {
return false;
}
SSHCertRequestData a = (SSHCertRequestData) another;
if (principals == null ? a.principals != null : !principals.equals(a.principals)) {
return false;
}
if (sources == null ? a.sources != null : !sources.equals(a.sources)) {
return false;
}
if (destinations == null ? a.destinations != null : !destinations.equals(a.destinations)) {
return false;
}
if (publicKey == null ? a.publicKey != null : !publicKey.equals(a.publicKey)) {
return false;
}
if (touchPublicKey == null ? a.touchPublicKey != null : !touchPublicKey.equals(a.touchPublicKey)) {
return false;
}
if (caPubKeyAlgo == null ? a.caPubKeyAlgo != null : !caPubKeyAlgo.equals(a.caPubKeyAlgo)) {
return false;
}
if (command == null ? a.command != null : !command.equals(a.command)) {
return false;
}
}
return true;
}
}