io.fabric8.kubernetes.api.model.ReplicationControllerList 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",
"generateName",
"id",
"items",
"kind",
"namespace",
"resourceVersion",
"selfLink",
"uid"
})
public class ReplicationControllerList {
/**
* 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 ReplicationControllerList.ApiVersion apiVersion = ReplicationControllerList.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;
/**
* 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;
/**
* list of replication controllers
*
*/
@JsonProperty("items")
@Valid
private List items = new ArrayList();
/**
*
* (Required)
*
*/
@JsonProperty("kind")
@NotNull
private java.lang.String kind = "ReplicationControllerList";
/**
* 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;
/**
* 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;
/**
* 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 ReplicationControllerList() {
}
/**
*
* @param uid
* @param id
* @param deletionTimestamp
* @param apiVersion
* @param items
* @param resourceVersion
* @param generateName
* @param selfLink
* @param creationTimestamp
* @param annotations
* @param kind
* @param namespace
*/
public ReplicationControllerList(Map annotations, ReplicationControllerList.ApiVersion apiVersion, java.lang.String creationTimestamp, java.lang.String deletionTimestamp, java.lang.String generateName, java.lang.String id, List items, java.lang.String kind, java.lang.String namespace, Integer resourceVersion, java.lang.String selfLink, java.lang.String uid) {
this.annotations = annotations;
this.apiVersion = apiVersion;
this.creationTimestamp = creationTimestamp;
this.deletionTimestamp = deletionTimestamp;
this.generateName = generateName;
this.id = id;
this.items = items;
this.kind = kind;
this.namespace = namespace;
this.resourceVersion = resourceVersion;
this.selfLink = selfLink;
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 ReplicationControllerList.ApiVersion getApiVersion() {
return apiVersion;
}
/**
*
* (Required)
*
* @param apiVersion
* The apiVersion
*/
@JsonProperty("apiVersion")
public void setApiVersion(ReplicationControllerList.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;
}
/**
* 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;
}
/**
* list of replication controllers
*
* @return
* The items
*/
@JsonProperty("items")
public List getItems() {
return items;
}
/**
* list of replication controllers
*
* @param items
* The items
*/
@JsonProperty("items")
public void setItems(List items) {
this.items = items;
}
/**
*
* (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;
}
/**
* 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;
}
/**
* 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(generateName).append(id).append(items).append(kind).append(namespace).append(resourceVersion).append(selfLink).append(uid).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ReplicationControllerList) == false) {
return false;
}
ReplicationControllerList rhs = ((ReplicationControllerList) other);
return new EqualsBuilder().append(annotations, rhs.annotations).append(apiVersion, rhs.apiVersion).append(creationTimestamp, rhs.creationTimestamp).append(deletionTimestamp, rhs.deletionTimestamp).append(generateName, rhs.generateName).append(id, rhs.id).append(items, rhs.items).append(kind, rhs.kind).append(namespace, rhs.namespace).append(resourceVersion, rhs.resourceVersion).append(selfLink, rhs.selfLink).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 (ReplicationControllerList.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 ReplicationControllerList.ApiVersion fromValue(java.lang.String value) {
ReplicationControllerList.ApiVersion constant = constants.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy