org.openmetadata.schema.tests.TestCaseParameterValue Maven / Gradle / Ivy
package org.openmetadata.schema.tests;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.annotation.processing.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.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* This schema defines the parameter values that can be passed for a Test Case.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"name",
"value"
})
@Generated("jsonschema2pojo")
public class TestCaseParameterValue {
/**
* name of the parameter. Must match the parameter names in testCaseParameterDefinition
*
*/
@JsonProperty("name")
@JsonPropertyDescription("name of the parameter. Must match the parameter names in testCaseParameterDefinition")
private String name;
/**
* value to be passed for the Parameters. These are input from Users. We capture this in string and convert during the runtime.
*
*/
@JsonProperty("value")
@JsonPropertyDescription("value to be passed for the Parameters. These are input from Users. We capture this in string and convert during the runtime.")
private String value;
@JsonIgnore
@Valid
private Map additionalProperties = new LinkedHashMap();
/**
* name of the parameter. Must match the parameter names in testCaseParameterDefinition
*
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
* name of the parameter. Must match the parameter names in testCaseParameterDefinition
*
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
public TestCaseParameterValue withName(String name) {
this.name = name;
return this;
}
/**
* value to be passed for the Parameters. These are input from Users. We capture this in string and convert during the runtime.
*
*/
@JsonProperty("value")
public String getValue() {
return value;
}
/**
* value to be passed for the Parameters. These are input from Users. We capture this in string and convert during the runtime.
*
*/
@JsonProperty("value")
public void setValue(String value) {
this.value = value;
}
public TestCaseParameterValue withValue(String value) {
this.value = value;
return this;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public TestCaseParameterValue withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(TestCaseParameterValue.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("name");
sb.append('=');
sb.append(((this.name == null)?"":this.name));
sb.append(',');
sb.append("value");
sb.append('=');
sb.append(((this.value == null)?"":this.value));
sb.append(',');
sb.append("additionalProperties");
sb.append('=');
sb.append(((this.additionalProperties == null)?"":this.additionalProperties));
sb.append(',');
if (sb.charAt((sb.length()- 1)) == ',') {
sb.setCharAt((sb.length()- 1), ']');
} else {
sb.append(']');
}
return sb.toString();
}
@Override
public int hashCode() {
int result = 1;
result = ((result* 31)+((this.name == null)? 0 :this.name.hashCode()));
result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
result = ((result* 31)+((this.value == null)? 0 :this.value.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof TestCaseParameterValue) == false) {
return false;
}
TestCaseParameterValue rhs = ((TestCaseParameterValue) other);
return ((((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name)))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))))&&((this.value == rhs.value)||((this.value!= null)&&this.value.equals(rhs.value))));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy