io.fabric8.kubernetes.api.model.LoadBalancerIngress Maven / Gradle / Ivy
The newest version!
package io.fabric8.kubernetes.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 com.fasterxml.jackson.databind.annotation.JsonDeserialize;
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({
"hostname",
"ip"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
public class LoadBalancerIngress {
/**
* hostname of ingress point
*
*/
@JsonProperty("hostname")
private String hostname;
/**
* IP address of ingress point
*
*/
@JsonProperty("ip")
private String ip;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public LoadBalancerIngress() {
}
/**
*
* @param hostname
* @param ip
*/
public LoadBalancerIngress(String hostname, String ip) {
this.hostname = hostname;
this.ip = ip;
}
/**
* hostname of ingress point
*
* @return
* The hostname
*/
@JsonProperty("hostname")
public String getHostname() {
return hostname;
}
/**
* hostname of ingress point
*
* @param hostname
* The hostname
*/
@JsonProperty("hostname")
public void setHostname(String hostname) {
this.hostname = hostname;
}
/**
* IP address of ingress point
*
* @return
* The ip
*/
@JsonProperty("ip")
public String getIp() {
return ip;
}
/**
* IP address of ingress point
*
* @param ip
* The ip
*/
@JsonProperty("ip")
public void setIp(String ip) {
this.ip = ip;
}
@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(hostname).append(ip).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof LoadBalancerIngress) == false) {
return false;
}
LoadBalancerIngress rhs = ((LoadBalancerIngress) other);
return new EqualsBuilder().append(hostname, rhs.hostname).append(ip, rhs.ip).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy