com.dell.cpsd.hal.data.provider.api.ContextRoot Maven / Gradle / Ivy
package com.dell.cpsd.hal.data.provider.api;
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;
/**
* ContextRoot
*
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"identifier"
})
public class ContextRoot {
/**
*
* (Required)
*
*/
@JsonProperty("identifier")
private String identifier;
/**
* No args constructor for use in serialization
*
*/
public ContextRoot() {
}
/**
*
* @param identifier
*/
public ContextRoot(String identifier) {
super();
this.identifier = identifier;
}
/**
*
* (Required)
*
* @return
* The identifier
*/
@JsonProperty("identifier")
public String getIdentifier() {
return identifier;
}
/**
*
* (Required)
*
* @param identifier
* The identifier
*/
@JsonProperty("identifier")
public void setIdentifier(String identifier) {
this.identifier = identifier;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(identifier).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ContextRoot) == false) {
return false;
}
ContextRoot rhs = ((ContextRoot) other);
return new EqualsBuilder().append(identifier, rhs.identifier).isEquals();
}
}