io.fabric8.openshift.api.model.template.Parameter Maven / Gradle / Ivy
package io.fabric8.openshift.api.model.template;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
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({
"description",
"from",
"generate",
"name",
"value"
})
public class Parameter {
/**
*
*
*/
@JsonProperty("description")
private String description;
/**
*
*
*/
@JsonProperty("from")
private String from;
/**
*
*
*/
@JsonProperty("generate")
private String generate;
/**
*
*
*/
@JsonProperty("name")
private String name;
/**
*
*
*/
@JsonProperty("value")
private String value;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public Parameter() {
}
/**
*
* @param generate
* @param description
* @param name
* @param value
* @param from
*/
public Parameter(String description, String from, String generate, String name, String value) {
this.description = description;
this.from = from;
this.generate = generate;
this.name = name;
this.value = value;
}
/**
*
*
* @return
* The description
*/
@JsonProperty("description")
public String getDescription() {
return description;
}
/**
*
*
* @param description
* The description
*/
@JsonProperty("description")
public void setDescription(String description) {
this.description = description;
}
/**
*
*
* @return
* The from
*/
@JsonProperty("from")
public String getFrom() {
return from;
}
/**
*
*
* @param from
* The from
*/
@JsonProperty("from")
public void setFrom(String from) {
this.from = from;
}
/**
*
*
* @return
* The generate
*/
@JsonProperty("generate")
public String getGenerate() {
return generate;
}
/**
*
*
* @param generate
* The generate
*/
@JsonProperty("generate")
public void setGenerate(String generate) {
this.generate = generate;
}
/**
*
*
* @return
* The name
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
*
*
* @param name
* The name
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
/**
*
*
* @return
* The value
*/
@JsonProperty("value")
public String getValue() {
return value;
}
/**
*
*
* @param value
* The value
*/
@JsonProperty("value")
public void setValue(String value) {
this.value = value;
}
@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(description).append(from).append(generate).append(name).append(value).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Parameter) == false) {
return false;
}
Parameter rhs = ((Parameter) other);
return new EqualsBuilder().append(description, rhs.description).append(from, rhs.from).append(generate, rhs.generate).append(name, rhs.name).append(value, rhs.value).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy