com.dell.cpsd.includes.ModelInfo Maven / Gradle / Ivy
The newest version!
package com.dell.cpsd.includes;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import com.dell.cpsd.Link;
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.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"id",
"inactive",
"link"
})
public class ModelInfo implements Serializable
{
@JsonProperty("id")
private String id;
@JsonProperty("inactive")
private Boolean inactive;
/**
*
* Corresponds to the "link" property.
*
*/
@JsonProperty("link")
private Link link;
@JsonIgnore
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = 3545659396021569635L;
/**
* No args constructor for use in serialization
*
*/
public ModelInfo() {
}
/**
*
* @param inactive
* @param link
* @param id
*/
public ModelInfo(String id, Boolean inactive, Link link) {
super();
this.id = id;
this.inactive = inactive;
this.link = link;
}
@JsonProperty("id")
public String getId() {
return id;
}
@JsonProperty("id")
public void setId(String id) {
this.id = id;
}
@JsonProperty("inactive")
public Boolean getInactive() {
return inactive;
}
@JsonProperty("inactive")
public void setInactive(Boolean inactive) {
this.inactive = inactive;
}
/**
*
* Corresponds to the "link" property.
*
*/
@JsonProperty("link")
public Link getLink() {
return link;
}
/**
*
* Corresponds to the "link" property.
*
*/
@JsonProperty("link")
public void setLink(Link link) {
this.link = link;
}
@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(id).append(inactive).append(link).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ModelInfo) == false) {
return false;
}
ModelInfo rhs = ((ModelInfo) other);
return new EqualsBuilder().append(id, rhs.id).append(inactive, rhs.inactive).append(link, rhs.link).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy