com.yahoo.athenz.zts.InstanceIdentity 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.Map;
import com.yahoo.rdl.*;
//
// InstanceIdentity -
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class InstanceIdentity {
public String provider;
public String name;
public String instanceId;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String x509Certificate;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String x509CertificateSigner;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String sshCertificate;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String sshCertificateSigner;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String serviceToken;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Map attributes;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public AthenzJWKConfig athenzJWK;
public InstanceIdentity setProvider(String provider) {
this.provider = provider;
return this;
}
public String getProvider() {
return provider;
}
public InstanceIdentity setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
public InstanceIdentity setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return instanceId;
}
public InstanceIdentity setX509Certificate(String x509Certificate) {
this.x509Certificate = x509Certificate;
return this;
}
public String getX509Certificate() {
return x509Certificate;
}
public InstanceIdentity setX509CertificateSigner(String x509CertificateSigner) {
this.x509CertificateSigner = x509CertificateSigner;
return this;
}
public String getX509CertificateSigner() {
return x509CertificateSigner;
}
public InstanceIdentity setSshCertificate(String sshCertificate) {
this.sshCertificate = sshCertificate;
return this;
}
public String getSshCertificate() {
return sshCertificate;
}
public InstanceIdentity setSshCertificateSigner(String sshCertificateSigner) {
this.sshCertificateSigner = sshCertificateSigner;
return this;
}
public String getSshCertificateSigner() {
return sshCertificateSigner;
}
public InstanceIdentity setServiceToken(String serviceToken) {
this.serviceToken = serviceToken;
return this;
}
public String getServiceToken() {
return serviceToken;
}
public InstanceIdentity setAttributes(Map attributes) {
this.attributes = attributes;
return this;
}
public Map getAttributes() {
return attributes;
}
public InstanceIdentity setAthenzJWK(AthenzJWKConfig athenzJWK) {
this.athenzJWK = athenzJWK;
return this;
}
public AthenzJWKConfig getAthenzJWK() {
return athenzJWK;
}
@Override
public boolean equals(Object another) {
if (this != another) {
if (another == null || another.getClass() != InstanceIdentity.class) {
return false;
}
InstanceIdentity a = (InstanceIdentity) another;
if (provider == null ? a.provider != null : !provider.equals(a.provider)) {
return false;
}
if (name == null ? a.name != null : !name.equals(a.name)) {
return false;
}
if (instanceId == null ? a.instanceId != null : !instanceId.equals(a.instanceId)) {
return false;
}
if (x509Certificate == null ? a.x509Certificate != null : !x509Certificate.equals(a.x509Certificate)) {
return false;
}
if (x509CertificateSigner == null ? a.x509CertificateSigner != null : !x509CertificateSigner.equals(a.x509CertificateSigner)) {
return false;
}
if (sshCertificate == null ? a.sshCertificate != null : !sshCertificate.equals(a.sshCertificate)) {
return false;
}
if (sshCertificateSigner == null ? a.sshCertificateSigner != null : !sshCertificateSigner.equals(a.sshCertificateSigner)) {
return false;
}
if (serviceToken == null ? a.serviceToken != null : !serviceToken.equals(a.serviceToken)) {
return false;
}
if (attributes == null ? a.attributes != null : !attributes.equals(a.attributes)) {
return false;
}
if (athenzJWK == null ? a.athenzJWK != null : !athenzJWK.equals(a.athenzJWK)) {
return false;
}
}
return true;
}
}