io.github.algomaster99.terminator.commons.cyclonedx.Parameter Maven / Gradle / Ivy
package io.github.algomaster99.terminator.commons.cyclonedx;
import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Parameter
*
* A representation of a functional parameter.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"name",
"value",
"dataType"
})
@Generated("jsonschema2pojo")
public class Parameter {
/**
* Name
*
* The name of the parameter.
*
*/
@JsonProperty("name")
@JsonPropertyDescription("The name of the parameter.")
private String name;
/**
* Value
*
* The value of the parameter.
*
*/
@JsonProperty("value")
@JsonPropertyDescription("The value of the parameter.")
private String value;
/**
* Data type
*
* The data type of the parameter.
*
*/
@JsonProperty("dataType")
@JsonPropertyDescription("The data type of the parameter.")
private String dataType;
/**
* Name
*
* The name of the parameter.
*
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
* Name
*
* The name of the parameter.
*
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
/**
* Value
*
* The value of the parameter.
*
*/
@JsonProperty("value")
public String getValue() {
return value;
}
/**
* Value
*
* The value of the parameter.
*
*/
@JsonProperty("value")
public void setValue(String value) {
this.value = value;
}
/**
* Data type
*
* The data type of the parameter.
*
*/
@JsonProperty("dataType")
public String getDataType() {
return dataType;
}
/**
* Data type
*
* The data type of the parameter.
*
*/
@JsonProperty("dataType")
public void setDataType(String dataType) {
this.dataType = dataType;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(Parameter.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("dataType");
sb.append('=');
sb.append(((this.dataType == null)?"":this.dataType));
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.value == null)? 0 :this.value.hashCode()));
result = ((result* 31)+((this.dataType == null)? 0 :this.dataType.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Parameter) == false) {
return false;
}
Parameter rhs = ((Parameter) other);
return ((((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name)))&&((this.value == rhs.value)||((this.value!= null)&&this.value.equals(rhs.value))))&&((this.dataType == rhs.dataType)||((this.dataType!= null)&&this.dataType.equals(rhs.dataType))));
}
}