io.fabric8.openshift.api.model.DeploymentTriggerImageChangeParams 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.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({
"automatic",
"containerNames",
"from",
"lastTriggeredImage"
})
public class DeploymentTriggerImageChangeParams {
/**
*
*
*/
@JsonProperty("automatic")
private Boolean automatic;
/**
*
*
*/
@JsonProperty("containerNames")
@Valid
private List containerNames = new ArrayList();
/**
*
*
*/
@JsonProperty("from")
@Valid
private ObjectReference from;
/**
*
*
*/
@JsonProperty("lastTriggeredImage")
private String lastTriggeredImage;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public DeploymentTriggerImageChangeParams() {
}
/**
*
* @param automatic
* @param from
* @param containerNames
* @param lastTriggeredImage
*/
public DeploymentTriggerImageChangeParams(Boolean automatic, List containerNames, ObjectReference from, String lastTriggeredImage) {
this.automatic = automatic;
this.containerNames = containerNames;
this.from = from;
this.lastTriggeredImage = lastTriggeredImage;
}
/**
*
*
* @return
* The automatic
*/
@JsonProperty("automatic")
public Boolean getAutomatic() {
return automatic;
}
/**
*
*
* @param automatic
* The automatic
*/
@JsonProperty("automatic")
public void setAutomatic(Boolean automatic) {
this.automatic = automatic;
}
/**
*
*
* @return
* The containerNames
*/
@JsonProperty("containerNames")
public List getContainerNames() {
return containerNames;
}
/**
*
*
* @param containerNames
* The containerNames
*/
@JsonProperty("containerNames")
public void setContainerNames(List containerNames) {
this.containerNames = containerNames;
}
/**
*
*
* @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 lastTriggeredImage
*/
@JsonProperty("lastTriggeredImage")
public String getLastTriggeredImage() {
return lastTriggeredImage;
}
/**
*
*
* @param lastTriggeredImage
* The lastTriggeredImage
*/
@JsonProperty("lastTriggeredImage")
public void setLastTriggeredImage(String lastTriggeredImage) {
this.lastTriggeredImage = lastTriggeredImage;
}
@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(automatic).append(containerNames).append(from).append(lastTriggeredImage).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DeploymentTriggerImageChangeParams) == false) {
return false;
}
DeploymentTriggerImageChangeParams rhs = ((DeploymentTriggerImageChangeParams) other);
return new EqualsBuilder().append(automatic, rhs.automatic).append(containerNames, rhs.containerNames).append(from, rhs.from).append(lastTriggeredImage, rhs.lastTriggeredImage).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy