All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.athenz.zts.SSHCertificate Maven / Gradle / Ivy

There is a newer version: 1.11.66
Show newest version
//
// 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 com.yahoo.rdl.*;

//
// SSHCertificate -
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class SSHCertificate {
    public String certificate;
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public String publicKey;
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public String privateKey;

    public SSHCertificate setCertificate(String certificate) {
        this.certificate = certificate;
        return this;
    }
    public String getCertificate() {
        return certificate;
    }
    public SSHCertificate setPublicKey(String publicKey) {
        this.publicKey = publicKey;
        return this;
    }
    public String getPublicKey() {
        return publicKey;
    }
    public SSHCertificate setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
        return this;
    }
    public String getPrivateKey() {
        return privateKey;
    }

    @Override
    public boolean equals(Object another) {
        if (this != another) {
            if (another == null || another.getClass() != SSHCertificate.class) {
                return false;
            }
            SSHCertificate a = (SSHCertificate) another;
            if (certificate == null ? a.certificate != null : !certificate.equals(a.certificate)) {
                return false;
            }
            if (publicKey == null ? a.publicKey != null : !publicKey.equals(a.publicKey)) {
                return false;
            }
            if (privateKey == null ? a.privateKey != null : !privateKey.equals(a.privateKey)) {
                return false;
            }
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy