io.fabric8.kubernetes.api.model.Endpoints Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonCreator;
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.annotation.JsonValue;
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({
"annotations",
"apiVersion",
"creationTimestamp",
"deletionTimestamp",
"endpoints",
"generateName",
"id",
"kind",
"namespace",
"protocol",
"resourceVersion",
"selfLink",
"subsets",
"targetRefs",
"uid"
})
public class Endpoints {
/**
* map of string keys and values that can be used by external tooling to store and retrieve arbitrary metadata about the object
*
*/
@JsonProperty("annotations")
@Valid
private Map annotations;
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
@NotNull
private Endpoints.ApiVersion apiVersion = Endpoints.ApiVersion.fromValue("v1beta2");
/**
* RFC 3339 date and time at which the object was created; populated by the system
*
*/
@JsonProperty("creationTimestamp")
private java.lang.String creationTimestamp;
/**
* RFC 3339 date and time at which the object will be deleted; populated by the system when a graceful deletion is requested
*
*/
@JsonProperty("deletionTimestamp")
private java.lang.String deletionTimestamp;
/**
* first set of endpoints corresponding to a service
*
*/
@JsonProperty("endpoints")
@Valid
private List endpoints = new ArrayList();
/**
* an optional prefix to use to generate a unique name; has the same validation rules as name; optional
*
*/
@JsonProperty("generateName")
private java.lang.String generateName;
/**
* name of the object; must be a DNS_SUBDOMAIN and unique among all objects of the same kind within the same namespace; used in resource URLs; cannot be updated
*
*/
@JsonProperty("id")
@Pattern(regexp = "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$")
@Size(max = 253)
private java.lang.String id;
/**
*
* (Required)
*
*/
@JsonProperty("kind")
@NotNull
private java.lang.String kind = "Endpoints";
/**
* namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated
*
*/
@JsonProperty("namespace")
@Pattern(regexp = "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$")
@Size(max = 253)
private java.lang.String namespace;
/**
* IP protocol for the first set of endpoint ports; must be UDP or TCP; TCP if unspecified
*
*/
@JsonProperty("protocol")
private java.lang.String protocol;
/**
* string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system
*
*/
@JsonProperty("resourceVersion")
private Integer resourceVersion;
/**
* URL for the object; populated by the system
*
*/
@JsonProperty("selfLink")
private java.lang.String selfLink;
/**
* sets of addresses and ports that comprise a service
*
*/
@JsonProperty("subsets")
@Valid
private List subsets = new ArrayList();
/**
* list of references to objects providing the endpoints
*
*/
@JsonProperty("targetRefs")
@Valid
private List targetRefs = new ArrayList();
/**
* unique UUID across space and time; populated by the system
*
*/
@JsonProperty("uid")
private java.lang.String uid;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public Endpoints() {
}
/**
*
* @param uid
* @param apiVersion
* @param deletionTimestamp
* @param protocol
* @param endpoints
* @param generateName
* @param selfLink
* @param kind
* @param namespace
* @param subsets
* @param id
* @param targetRefs
* @param resourceVersion
* @param annotations
* @param creationTimestamp
*/
public Endpoints(Map annotations, Endpoints.ApiVersion apiVersion, java.lang.String creationTimestamp, java.lang.String deletionTimestamp, List endpoints, java.lang.String generateName, java.lang.String id, java.lang.String kind, java.lang.String namespace, java.lang.String protocol, Integer resourceVersion, java.lang.String selfLink, List subsets, List targetRefs, java.lang.String uid) {
this.annotations = annotations;
this.apiVersion = apiVersion;
this.creationTimestamp = creationTimestamp;
this.deletionTimestamp = deletionTimestamp;
this.endpoints = endpoints;
this.generateName = generateName;
this.id = id;
this.kind = kind;
this.namespace = namespace;
this.protocol = protocol;
this.resourceVersion = resourceVersion;
this.selfLink = selfLink;
this.subsets = subsets;
this.targetRefs = targetRefs;
this.uid = uid;
}
/**
* map of string keys and values that can be used by external tooling to store and retrieve arbitrary metadata about the object
*
* @return
* The annotations
*/
@JsonProperty("annotations")
public Map getAnnotations() {
return annotations;
}
/**
* map of string keys and values that can be used by external tooling to store and retrieve arbitrary metadata about the object
*
* @param annotations
* The annotations
*/
@JsonProperty("annotations")
public void setAnnotations(Map annotations) {
this.annotations = annotations;
}
/**
*
* (Required)
*
* @return
* The apiVersion
*/
@JsonProperty("apiVersion")
public Endpoints.ApiVersion getApiVersion() {
return apiVersion;
}
/**
*
* (Required)
*
* @param apiVersion
* The apiVersion
*/
@JsonProperty("apiVersion")
public void setApiVersion(Endpoints.ApiVersion apiVersion) {
this.apiVersion = apiVersion;
}
/**
* RFC 3339 date and time at which the object was created; populated by the system
*
* @return
* The creationTimestamp
*/
@JsonProperty("creationTimestamp")
public java.lang.String getCreationTimestamp() {
return creationTimestamp;
}
/**
* RFC 3339 date and time at which the object was created; populated by the system
*
* @param creationTimestamp
* The creationTimestamp
*/
@JsonProperty("creationTimestamp")
public void setCreationTimestamp(java.lang.String creationTimestamp) {
this.creationTimestamp = creationTimestamp;
}
/**
* RFC 3339 date and time at which the object will be deleted; populated by the system when a graceful deletion is requested
*
* @return
* The deletionTimestamp
*/
@JsonProperty("deletionTimestamp")
public java.lang.String getDeletionTimestamp() {
return deletionTimestamp;
}
/**
* RFC 3339 date and time at which the object will be deleted; populated by the system when a graceful deletion is requested
*
* @param deletionTimestamp
* The deletionTimestamp
*/
@JsonProperty("deletionTimestamp")
public void setDeletionTimestamp(java.lang.String deletionTimestamp) {
this.deletionTimestamp = deletionTimestamp;
}
/**
* first set of endpoints corresponding to a service
*
* @return
* The endpoints
*/
@JsonProperty("endpoints")
public List getEndpoints() {
return endpoints;
}
/**
* first set of endpoints corresponding to a service
*
* @param endpoints
* The endpoints
*/
@JsonProperty("endpoints")
public void setEndpoints(List endpoints) {
this.endpoints = endpoints;
}
/**
* an optional prefix to use to generate a unique name; has the same validation rules as name; optional
*
* @return
* The generateName
*/
@JsonProperty("generateName")
public java.lang.String getGenerateName() {
return generateName;
}
/**
* an optional prefix to use to generate a unique name; has the same validation rules as name; optional
*
* @param generateName
* The generateName
*/
@JsonProperty("generateName")
public void setGenerateName(java.lang.String generateName) {
this.generateName = generateName;
}
/**
* name of the object; must be a DNS_SUBDOMAIN and unique among all objects of the same kind within the same namespace; used in resource URLs; cannot be updated
*
* @return
* The id
*/
@JsonProperty("id")
public java.lang.String getId() {
return id;
}
/**
* name of the object; must be a DNS_SUBDOMAIN and unique among all objects of the same kind within the same namespace; used in resource URLs; cannot be updated
*
* @param id
* The id
*/
@JsonProperty("id")
public void setId(java.lang.String id) {
this.id = id;
}
/**
*
* (Required)
*
* @return
* The kind
*/
@JsonProperty("kind")
public java.lang.String getKind() {
return kind;
}
/**
*
* (Required)
*
* @param kind
* The kind
*/
@JsonProperty("kind")
public void setKind(java.lang.String kind) {
this.kind = kind;
}
/**
* namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated
*
* @return
* The namespace
*/
@JsonProperty("namespace")
public java.lang.String getNamespace() {
return namespace;
}
/**
* namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated
*
* @param namespace
* The namespace
*/
@JsonProperty("namespace")
public void setNamespace(java.lang.String namespace) {
this.namespace = namespace;
}
/**
* IP protocol for the first set of endpoint ports; must be UDP or TCP; TCP if unspecified
*
* @return
* The protocol
*/
@JsonProperty("protocol")
public java.lang.String getProtocol() {
return protocol;
}
/**
* IP protocol for the first set of endpoint ports; must be UDP or TCP; TCP if unspecified
*
* @param protocol
* The protocol
*/
@JsonProperty("protocol")
public void setProtocol(java.lang.String protocol) {
this.protocol = protocol;
}
/**
* string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system
*
* @return
* The resourceVersion
*/
@JsonProperty("resourceVersion")
public Integer getResourceVersion() {
return resourceVersion;
}
/**
* string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system
*
* @param resourceVersion
* The resourceVersion
*/
@JsonProperty("resourceVersion")
public void setResourceVersion(Integer resourceVersion) {
this.resourceVersion = resourceVersion;
}
/**
* URL for the object; populated by the system
*
* @return
* The selfLink
*/
@JsonProperty("selfLink")
public java.lang.String getSelfLink() {
return selfLink;
}
/**
* URL for the object; populated by the system
*
* @param selfLink
* The selfLink
*/
@JsonProperty("selfLink")
public void setSelfLink(java.lang.String selfLink) {
this.selfLink = selfLink;
}
/**
* sets of addresses and ports that comprise a service
*
* @return
* The subsets
*/
@JsonProperty("subsets")
public List getSubsets() {
return subsets;
}
/**
* sets of addresses and ports that comprise a service
*
* @param subsets
* The subsets
*/
@JsonProperty("subsets")
public void setSubsets(List subsets) {
this.subsets = subsets;
}
/**
* list of references to objects providing the endpoints
*
* @return
* The targetRefs
*/
@JsonProperty("targetRefs")
public List getTargetRefs() {
return targetRefs;
}
/**
* list of references to objects providing the endpoints
*
* @param targetRefs
* The targetRefs
*/
@JsonProperty("targetRefs")
public void setTargetRefs(List targetRefs) {
this.targetRefs = targetRefs;
}
/**
* unique UUID across space and time; populated by the system
*
* @return
* The uid
*/
@JsonProperty("uid")
public java.lang.String getUid() {
return uid;
}
/**
* unique UUID across space and time; populated by the system
*
* @param uid
* The uid
*/
@JsonProperty("uid")
public void setUid(java.lang.String uid) {
this.uid = uid;
}
@Override
public java.lang.String toString() {
return ToStringBuilder.reflectionToString(this);
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(java.lang.String name, Object value) {
this.additionalProperties.put(name, value);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(annotations).append(apiVersion).append(creationTimestamp).append(deletionTimestamp).append(endpoints).append(generateName).append(id).append(kind).append(namespace).append(protocol).append(resourceVersion).append(selfLink).append(subsets).append(targetRefs).append(uid).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Endpoints) == false) {
return false;
}
Endpoints rhs = ((Endpoints) other);
return new EqualsBuilder().append(annotations, rhs.annotations).append(apiVersion, rhs.apiVersion).append(creationTimestamp, rhs.creationTimestamp).append(deletionTimestamp, rhs.deletionTimestamp).append(endpoints, rhs.endpoints).append(generateName, rhs.generateName).append(id, rhs.id).append(kind, rhs.kind).append(namespace, rhs.namespace).append(protocol, rhs.protocol).append(resourceVersion, rhs.resourceVersion).append(selfLink, rhs.selfLink).append(subsets, rhs.subsets).append(targetRefs, rhs.targetRefs).append(uid, rhs.uid).append(additionalProperties, rhs.additionalProperties).isEquals();
}
@Generated("org.jsonschema2pojo")
public static enum ApiVersion {
V_1_BETA_1("v1beta1"),
V_1_BETA_2("v1beta2"),
V_1_BETA_3("v1beta3");
private final java.lang.String value;
private static Map constants = new HashMap();
static {
for (Endpoints.ApiVersion c: values()) {
constants.put(c.value, c);
}
}
private ApiVersion(java.lang.String value) {
this.value = value;
}
@JsonValue
@Override
public java.lang.String toString() {
return this.value;
}
@JsonCreator
public static Endpoints.ApiVersion fromValue(java.lang.String value) {
Endpoints.ApiVersion constant = constants.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy