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

io.gravitee.rest.api.service.swagger.converter.extension.VirtualHost Maven / Gradle / Ivy

There is a newer version: 3.10.0
Show newest version

package io.gravitee.rest.api.service.swagger.converter.extension;

import java.util.HashMap;
import java.util.Map;
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.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "host",
    "path",
    "overrideEntrypoint"
})
public class VirtualHost {

    /**
     * Host which must be set into the HTTP request to access the entrypoint.
     * 
     */
    @JsonProperty("host")
    @JsonPropertyDescription("Host which must be set into the HTTP request to access the entrypoint.")
    private String host;
    /**
     * Listening path.
     * 
     */
    @JsonProperty("path")
    @JsonPropertyDescription("Listening path.")
    private String path;
    /**
     * Useful to override entrypoint with the virtual host on the portal.
     * 
     */
    @JsonProperty("overrideEntrypoint")
    @JsonPropertyDescription("Useful to override entrypoint with the virtual host on the portal.")
    private Boolean overrideEntrypoint;
    @JsonIgnore
    private Map additionalProperties = new HashMap();

    /**
     * Host which must be set into the HTTP request to access the entrypoint.
     * 
     */
    @JsonProperty("host")
    public String getHost() {
        return host;
    }

    /**
     * Host which must be set into the HTTP request to access the entrypoint.
     * 
     */
    @JsonProperty("host")
    public void setHost(String host) {
        this.host = host;
    }

    /**
     * Listening path.
     * 
     */
    @JsonProperty("path")
    public String getPath() {
        return path;
    }

    /**
     * Listening path.
     * 
     */
    @JsonProperty("path")
    public void setPath(String path) {
        this.path = path;
    }

    /**
     * Useful to override entrypoint with the virtual host on the portal.
     * 
     */
    @JsonProperty("overrideEntrypoint")
    public Boolean getOverrideEntrypoint() {
        return overrideEntrypoint;
    }

    /**
     * Useful to override entrypoint with the virtual host on the portal.
     * 
     */
    @JsonProperty("overrideEntrypoint")
    public void setOverrideEntrypoint(Boolean overrideEntrypoint) {
        this.overrideEntrypoint = overrideEntrypoint;
    }

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

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

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(VirtualHost.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
        sb.append("host");
        sb.append('=');
        sb.append(((this.host == null)?"":this.host));
        sb.append(',');
        sb.append("path");
        sb.append('=');
        sb.append(((this.path == null)?"":this.path));
        sb.append(',');
        sb.append("overrideEntrypoint");
        sb.append('=');
        sb.append(((this.overrideEntrypoint == null)?"":this.overrideEntrypoint));
        sb.append(',');
        sb.append("additionalProperties");
        sb.append('=');
        sb.append(((this.additionalProperties == null)?"":this.additionalProperties));
        sb.append(',');
        if (sb.charAt((sb.length()- 1)) == ',') {
            sb.setCharAt((sb.length()- 1), ']');
        } else {
            sb.append(']');
        }
        return sb.toString();
    }

    @Override
    public int hashCode() {
        int result = 1;
        result = ((result* 31)+((this.host == null)? 0 :this.host.hashCode()));
        result = ((result* 31)+((this.overrideEntrypoint == null)? 0 :this.overrideEntrypoint.hashCode()));
        result = ((result* 31)+((this.path == null)? 0 :this.path.hashCode()));
        result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
        return result;
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof VirtualHost) == false) {
            return false;
        }
        VirtualHost rhs = ((VirtualHost) other);
        return (((((this.host == rhs.host)||((this.host!= null)&&this.host.equals(rhs.host)))&&((this.overrideEntrypoint == rhs.overrideEntrypoint)||((this.overrideEntrypoint!= null)&&this.overrideEntrypoint.equals(rhs.overrideEntrypoint))))&&((this.path == rhs.path)||((this.path!= null)&&this.path.equals(rhs.path))))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy