io.fabric8.kubernetes.api.model.Minion Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import java.util.HashMap;
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",
"externalID",
"generateName",
"hostIP",
"id",
"kind",
"labels",
"namespace",
"podCIDR",
"resourceVersion",
"resources",
"selfLink",
"status",
"uid",
"unschedulable"
})
public class Minion {
/**
* 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 Minion.ApiVersion apiVersion = Minion.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;
/**
* external id of the node assigned by some machine database (e.g. a cloud provider). Defaults to node name when empty.
*
*/
@JsonProperty("externalID")
private java.lang.String externalID;
/**
* 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;
/**
* IP address of the node
*
*/
@JsonProperty("hostIP")
private java.lang.String hostIP;
/**
* 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 = "Minion";
/**
* map of string keys and values that can be used to organize and categorize minions; labels of a minion assigned by the scheduler must match the scheduled pod's nodeSelector
*
*/
@JsonProperty("labels")
@Valid
private Map labels;
/**
* 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 range assigned to the node
*
*/
@JsonProperty("podCIDR")
private java.lang.String podCIDR;
/**
* 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;
/**
*
*
*/
@JsonProperty("resources")
@Valid
private NodeResources resources;
/**
* URL for the object; populated by the system
*
*/
@JsonProperty("selfLink")
private java.lang.String selfLink;
/**
*
*
*/
@JsonProperty("status")
@Valid
private NodeStatus status;
/**
* unique UUID across space and time; populated by the system
*
*/
@JsonProperty("uid")
private java.lang.String uid;
/**
* disable pod scheduling on the node
*
*/
@JsonProperty("unschedulable")
private Boolean unschedulable;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public Minion() {
}
/**
*
* @param uid
* @param apiVersion
* @param deletionTimestamp
* @param resources
* @param status
* @param generateName
* @param hostIP
* @param labels
* @param selfLink
* @param externalID
* @param kind
* @param namespace
* @param id
* @param resourceVersion
* @param podCIDR
* @param unschedulable
* @param annotations
* @param creationTimestamp
*/
public Minion(Map annotations, Minion.ApiVersion apiVersion, java.lang.String creationTimestamp, java.lang.String deletionTimestamp, java.lang.String externalID, java.lang.String generateName, java.lang.String hostIP, java.lang.String id, java.lang.String kind, Map labels, java.lang.String namespace, java.lang.String podCIDR, Integer resourceVersion, NodeResources resources, java.lang.String selfLink, NodeStatus status, java.lang.String uid, Boolean unschedulable) {
this.annotations = annotations;
this.apiVersion = apiVersion;
this.creationTimestamp = creationTimestamp;
this.deletionTimestamp = deletionTimestamp;
this.externalID = externalID;
this.generateName = generateName;
this.hostIP = hostIP;
this.id = id;
this.kind = kind;
this.labels = labels;
this.namespace = namespace;
this.podCIDR = podCIDR;
this.resourceVersion = resourceVersion;
this.resources = resources;
this.selfLink = selfLink;
this.status = status;
this.uid = uid;
this.unschedulable = unschedulable;
}
/**
* 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 Minion.ApiVersion getApiVersion() {
return apiVersion;
}
/**
*
* (Required)
*
* @param apiVersion
* The apiVersion
*/
@JsonProperty("apiVersion")
public void setApiVersion(Minion.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;
}
/**
* external id of the node assigned by some machine database (e.g. a cloud provider). Defaults to node name when empty.
*
* @return
* The externalID
*/
@JsonProperty("externalID")
public java.lang.String getExternalID() {
return externalID;
}
/**
* external id of the node assigned by some machine database (e.g. a cloud provider). Defaults to node name when empty.
*
* @param externalID
* The externalID
*/
@JsonProperty("externalID")
public void setExternalID(java.lang.String externalID) {
this.externalID = externalID;
}
/**
* 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;
}
/**
* IP address of the node
*
* @return
* The hostIP
*/
@JsonProperty("hostIP")
public java.lang.String getHostIP() {
return hostIP;
}
/**
* IP address of the node
*
* @param hostIP
* The hostIP
*/
@JsonProperty("hostIP")
public void setHostIP(java.lang.String hostIP) {
this.hostIP = hostIP;
}
/**
* 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;
}
/**
* map of string keys and values that can be used to organize and categorize minions; labels of a minion assigned by the scheduler must match the scheduled pod's nodeSelector
*
* @return
* The labels
*/
@JsonProperty("labels")
public Map getLabels() {
return labels;
}
/**
* map of string keys and values that can be used to organize and categorize minions; labels of a minion assigned by the scheduler must match the scheduled pod's nodeSelector
*
* @param labels
* The labels
*/
@JsonProperty("labels")
public void setLabels(Map labels) {
this.labels = labels;
}
/**
* 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 range assigned to the node
*
* @return
* The podCIDR
*/
@JsonProperty("podCIDR")
public java.lang.String getPodCIDR() {
return podCIDR;
}
/**
* IP range assigned to the node
*
* @param podCIDR
* The podCIDR
*/
@JsonProperty("podCIDR")
public void setPodCIDR(java.lang.String podCIDR) {
this.podCIDR = podCIDR;
}
/**
* 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;
}
/**
*
*
* @return
* The resources
*/
@JsonProperty("resources")
public NodeResources getResources() {
return resources;
}
/**
*
*
* @param resources
* The resources
*/
@JsonProperty("resources")
public void setResources(NodeResources resources) {
this.resources = resources;
}
/**
* 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;
}
/**
*
*
* @return
* The status
*/
@JsonProperty("status")
public NodeStatus getStatus() {
return status;
}
/**
*
*
* @param status
* The status
*/
@JsonProperty("status")
public void setStatus(NodeStatus status) {
this.status = status;
}
/**
* 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;
}
/**
* disable pod scheduling on the node
*
* @return
* The unschedulable
*/
@JsonProperty("unschedulable")
public Boolean getUnschedulable() {
return unschedulable;
}
/**
* disable pod scheduling on the node
*
* @param unschedulable
* The unschedulable
*/
@JsonProperty("unschedulable")
public void setUnschedulable(Boolean unschedulable) {
this.unschedulable = unschedulable;
}
@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(externalID).append(generateName).append(hostIP).append(id).append(kind).append(labels).append(namespace).append(podCIDR).append(resourceVersion).append(resources).append(selfLink).append(status).append(uid).append(unschedulable).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Minion) == false) {
return false;
}
Minion rhs = ((Minion) other);
return new EqualsBuilder().append(annotations, rhs.annotations).append(apiVersion, rhs.apiVersion).append(creationTimestamp, rhs.creationTimestamp).append(deletionTimestamp, rhs.deletionTimestamp).append(externalID, rhs.externalID).append(generateName, rhs.generateName).append(hostIP, rhs.hostIP).append(id, rhs.id).append(kind, rhs.kind).append(labels, rhs.labels).append(namespace, rhs.namespace).append(podCIDR, rhs.podCIDR).append(resourceVersion, rhs.resourceVersion).append(resources, rhs.resources).append(selfLink, rhs.selfLink).append(status, rhs.status).append(uid, rhs.uid).append(unschedulable, rhs.unschedulable).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 (Minion.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 Minion.ApiVersion fromValue(java.lang.String value) {
Minion.ApiVersion constant = constants.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy