io.fabric8.openshift.api.model.BuildTriggerPolicy 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 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 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({
"generic",
"github",
"imageChange",
"type"
})
public class BuildTriggerPolicy {
/**
*
*
*/
@JsonProperty("generic")
@Valid
private WebHookTrigger generic;
/**
*
*
*/
@JsonProperty("github")
@Valid
private WebHookTrigger github;
/**
*
*
*/
@JsonProperty("imageChange")
@Valid
private ImageChangeTrigger imageChange;
/**
*
*
*/
@JsonProperty("type")
private String type;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public BuildTriggerPolicy() {
}
/**
*
* @param generic
* @param imageChange
* @param type
* @param github
*/
public BuildTriggerPolicy(WebHookTrigger generic, WebHookTrigger github, ImageChangeTrigger imageChange, String type) {
this.generic = generic;
this.github = github;
this.imageChange = imageChange;
this.type = type;
}
/**
*
*
* @return
* The generic
*/
@JsonProperty("generic")
public WebHookTrigger getGeneric() {
return generic;
}
/**
*
*
* @param generic
* The generic
*/
@JsonProperty("generic")
public void setGeneric(WebHookTrigger generic) {
this.generic = generic;
}
/**
*
*
* @return
* The github
*/
@JsonProperty("github")
public WebHookTrigger getGithub() {
return github;
}
/**
*
*
* @param github
* The github
*/
@JsonProperty("github")
public void setGithub(WebHookTrigger github) {
this.github = github;
}
/**
*
*
* @return
* The imageChange
*/
@JsonProperty("imageChange")
public ImageChangeTrigger getImageChange() {
return imageChange;
}
/**
*
*
* @param imageChange
* The imageChange
*/
@JsonProperty("imageChange")
public void setImageChange(ImageChangeTrigger imageChange) {
this.imageChange = imageChange;
}
/**
*
*
* @return
* The type
*/
@JsonProperty("type")
public String getType() {
return type;
}
/**
*
*
* @param type
* The type
*/
@JsonProperty("type")
public void setType(String type) {
this.type = type;
}
@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(generic).append(github).append(imageChange).append(type).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof BuildTriggerPolicy) == false) {
return false;
}
BuildTriggerPolicy rhs = ((BuildTriggerPolicy) other);
return new EqualsBuilder().append(generic, rhs.generic).append(github, rhs.github).append(imageChange, rhs.imageChange).append(type, rhs.type).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy