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

io.fabric8.openshift.api.model.TLSConfig Maven / Gradle / Ivy

There is a newer version: 0.0.54
Show newest version

package io.fabric8.openshift.api.model;

import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * 
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
    "caCertificate",
    "certificate",
    "destinationCACertificate",
    "key",
    "termination"
})
public class TLSConfig {

    /**
     * 
     * 
     */
    @JsonProperty("caCertificate")
    private String caCertificate;
    /**
     * 
     * 
     */
    @JsonProperty("certificate")
    private String certificate;
    /**
     * 
     * 
     */
    @JsonProperty("destinationCACertificate")
    private String destinationCACertificate;
    /**
     * 
     * 
     */
    @JsonProperty("key")
    private String key;
    /**
     * 
     * 
     */
    @JsonProperty("termination")
    private String termination;
    @JsonIgnore
    private Map additionalProperties = new HashMap();

    /**
     * No args constructor for use in serialization
     * 
     */
    public TLSConfig() {
    }

    /**
     * 
     * @param termination
     * @param caCertificate
     * @param certificate
     * @param key
     * @param destinationCACertificate
     */
    public TLSConfig(String caCertificate, String certificate, String destinationCACertificate, String key, String termination) {
        this.caCertificate = caCertificate;
        this.certificate = certificate;
        this.destinationCACertificate = destinationCACertificate;
        this.key = key;
        this.termination = termination;
    }

    /**
     * 
     * 
     * @return
     *     The caCertificate
     */
    @JsonProperty("caCertificate")
    public String getCaCertificate() {
        return caCertificate;
    }

    /**
     * 
     * 
     * @param caCertificate
     *     The caCertificate
     */
    @JsonProperty("caCertificate")
    public void setCaCertificate(String caCertificate) {
        this.caCertificate = caCertificate;
    }

    /**
     * 
     * 
     * @return
     *     The certificate
     */
    @JsonProperty("certificate")
    public String getCertificate() {
        return certificate;
    }

    /**
     * 
     * 
     * @param certificate
     *     The certificate
     */
    @JsonProperty("certificate")
    public void setCertificate(String certificate) {
        this.certificate = certificate;
    }

    /**
     * 
     * 
     * @return
     *     The destinationCACertificate
     */
    @JsonProperty("destinationCACertificate")
    public String getDestinationCACertificate() {
        return destinationCACertificate;
    }

    /**
     * 
     * 
     * @param destinationCACertificate
     *     The destinationCACertificate
     */
    @JsonProperty("destinationCACertificate")
    public void setDestinationCACertificate(String destinationCACertificate) {
        this.destinationCACertificate = destinationCACertificate;
    }

    /**
     * 
     * 
     * @return
     *     The key
     */
    @JsonProperty("key")
    public String getKey() {
        return key;
    }

    /**
     * 
     * 
     * @param key
     *     The key
     */
    @JsonProperty("key")
    public void setKey(String key) {
        this.key = key;
    }

    /**
     * 
     * 
     * @return
     *     The termination
     */
    @JsonProperty("termination")
    public String getTermination() {
        return termination;
    }

    /**
     * 
     * 
     * @param termination
     *     The termination
     */
    @JsonProperty("termination")
    public void setTermination(String termination) {
        this.termination = termination;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    @JsonAnyGetter
    public Map getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder().append(caCertificate).append(certificate).append(destinationCACertificate).append(key).append(termination).append(additionalProperties).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof TLSConfig) == false) {
            return false;
        }
        TLSConfig rhs = ((TLSConfig) other);
        return new EqualsBuilder().append(caCertificate, rhs.caCertificate).append(certificate, rhs.certificate).append(destinationCACertificate, rhs.destinationCACertificate).append(key, rhs.key).append(termination, rhs.termination).append(additionalProperties, rhs.additionalProperties).isEquals();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy