io.fabric8.openshift.api.model.DeploymentConfig Maven / Gradle / Ivy
package io.fabric8.openshift.api.model;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
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 io.fabric8.kubernetes.api.model.HasMetadata;
import io.fabric8.kubernetes.api.model.ObjectMeta;
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({
"apiVersion",
"kind",
"metadata",
"spec",
"status"
})
public class DeploymentConfig implements HasMetadata
{
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
@NotNull
private DeploymentConfig.ApiVersion apiVersion = DeploymentConfig.ApiVersion.fromValue("v1beta3");
/**
*
* (Required)
*
*/
@JsonProperty("kind")
@NotNull
private String kind = "DeploymentConfig";
/**
*
*
*/
@JsonProperty("metadata")
@Valid
private ObjectMeta metadata;
/**
*
*
*/
@JsonProperty("spec")
@Valid
private DeploymentConfigSpec spec;
/**
*
*
*/
@JsonProperty("status")
@Valid
private DeploymentConfigStatus status;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public DeploymentConfig() {
}
/**
*
* @param spec
* @param apiVersion
* @param status
* @param kind
* @param metadata
*/
public DeploymentConfig(DeploymentConfig.ApiVersion apiVersion, String kind, ObjectMeta metadata, DeploymentConfigSpec spec, DeploymentConfigStatus status) {
this.apiVersion = apiVersion;
this.kind = kind;
this.metadata = metadata;
this.spec = spec;
this.status = status;
}
/**
*
* (Required)
*
* @return
* The apiVersion
*/
@JsonProperty("apiVersion")
public DeploymentConfig.ApiVersion getApiVersion() {
return apiVersion;
}
/**
*
* (Required)
*
* @param apiVersion
* The apiVersion
*/
@JsonProperty("apiVersion")
public void setApiVersion(DeploymentConfig.ApiVersion apiVersion) {
this.apiVersion = apiVersion;
}
/**
*
* (Required)
*
* @return
* The kind
*/
@JsonProperty("kind")
public String getKind() {
return kind;
}
/**
*
* (Required)
*
* @param kind
* The kind
*/
@JsonProperty("kind")
public void setKind(String kind) {
this.kind = kind;
}
/**
*
*
* @return
* The metadata
*/
@JsonProperty("metadata")
public ObjectMeta getMetadata() {
return metadata;
}
/**
*
*
* @param metadata
* The metadata
*/
@JsonProperty("metadata")
public void setMetadata(ObjectMeta metadata) {
this.metadata = metadata;
}
/**
*
*
* @return
* The spec
*/
@JsonProperty("spec")
public DeploymentConfigSpec getSpec() {
return spec;
}
/**
*
*
* @param spec
* The spec
*/
@JsonProperty("spec")
public void setSpec(DeploymentConfigSpec spec) {
this.spec = spec;
}
/**
*
*
* @return
* The status
*/
@JsonProperty("status")
public DeploymentConfigStatus getStatus() {
return status;
}
/**
*
*
* @param status
* The status
*/
@JsonProperty("status")
public void setStatus(DeploymentConfigStatus status) {
this.status = status;
}
@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(apiVersion).append(kind).append(metadata).append(spec).append(status).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DeploymentConfig) == false) {
return false;
}
DeploymentConfig rhs = ((DeploymentConfig) other);
return new EqualsBuilder().append(apiVersion, rhs.apiVersion).append(kind, rhs.kind).append(metadata, rhs.metadata).append(spec, rhs.spec).append(status, rhs.status).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 String value;
private static Map constants = new HashMap();
static {
for (DeploymentConfig.ApiVersion c: values()) {
constants.put(c.value, c);
}
}
private ApiVersion(String value) {
this.value = value;
}
@JsonValue
@Override
public String toString() {
return this.value;
}
@JsonCreator
public static DeploymentConfig.ApiVersion fromValue(String value) {
DeploymentConfig.ApiVersion constant = constants.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy