io.fabric8.openshift.api.model.STIBuildStrategy Maven / Gradle / Ivy
package io.fabric8.openshift.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 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 io.fabric8.kubernetes.api.model.EnvVar;
import io.fabric8.kubernetes.api.model.ObjectReference;
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({
"env",
"from",
"incremental",
"scripts"
})
public class STIBuildStrategy {
/**
*
*
*/
@JsonProperty("env")
@Valid
private List env = new ArrayList();
/**
*
*
*/
@JsonProperty("from")
@Valid
private ObjectReference from;
/**
*
*
*/
@JsonProperty("incremental")
private Boolean incremental;
/**
*
*
*/
@JsonProperty("scripts")
private String scripts;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public STIBuildStrategy() {
}
/**
*
* @param scripts
* @param incremental
* @param from
* @param env
*/
public STIBuildStrategy(List env, ObjectReference from, Boolean incremental, String scripts) {
this.env = env;
this.from = from;
this.incremental = incremental;
this.scripts = scripts;
}
/**
*
*
* @return
* The env
*/
@JsonProperty("env")
public List getEnv() {
return env;
}
/**
*
*
* @param env
* The env
*/
@JsonProperty("env")
public void setEnv(List env) {
this.env = env;
}
/**
*
*
* @return
* The from
*/
@JsonProperty("from")
public ObjectReference getFrom() {
return from;
}
/**
*
*
* @param from
* The from
*/
@JsonProperty("from")
public void setFrom(ObjectReference from) {
this.from = from;
}
/**
*
*
* @return
* The incremental
*/
@JsonProperty("incremental")
public Boolean getIncremental() {
return incremental;
}
/**
*
*
* @param incremental
* The incremental
*/
@JsonProperty("incremental")
public void setIncremental(Boolean incremental) {
this.incremental = incremental;
}
/**
*
*
* @return
* The scripts
*/
@JsonProperty("scripts")
public String getScripts() {
return scripts;
}
/**
*
*
* @param scripts
* The scripts
*/
@JsonProperty("scripts")
public void setScripts(String scripts) {
this.scripts = scripts;
}
@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(env).append(from).append(incremental).append(scripts).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof STIBuildStrategy) == false) {
return false;
}
STIBuildStrategy rhs = ((STIBuildStrategy) other);
return new EqualsBuilder().append(env, rhs.env).append(from, rhs.from).append(incremental, rhs.incremental).append(scripts, rhs.scripts).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy