All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dell.cpsd.ScaleIOFaultSetDataRestRep Maven / Gradle / Ivy

The newest version!

package com.dell.cpsd;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
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",
    "name",
    "protectionDomain"
})
public class ScaleIOFaultSetDataRestRep implements Serializable
{

    @JsonProperty("id")
    private String id;
    @JsonProperty("name")
    private String name;
    @JsonProperty("protectionDomain")
    private String protectionDomain;
    @JsonIgnore
    private Map additionalProperties = new HashMap();
    private final static long serialVersionUID = 1420029464798466174L;

    /**
     * No args constructor for use in serialization
     * 
     */
    public ScaleIOFaultSetDataRestRep() {
    }

    /**
     * 
     * @param protectionDomain
     * @param name
     * @param id
     */
    public ScaleIOFaultSetDataRestRep(String id, String name, String protectionDomain) {
        super();
        this.id = id;
        this.name = name;
        this.protectionDomain = protectionDomain;
    }

    @JsonProperty("id")
    public String getId() {
        return id;
    }

    @JsonProperty("id")
    public void setId(String id) {
        this.id = id;
    }

    @JsonProperty("name")
    public String getName() {
        return name;
    }

    @JsonProperty("name")
    public void setName(String name) {
        this.name = name;
    }

    @JsonProperty("protectionDomain")
    public String getProtectionDomain() {
        return protectionDomain;
    }

    @JsonProperty("protectionDomain")
    public void setProtectionDomain(String protectionDomain) {
        this.protectionDomain = protectionDomain;
    }

    @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(name).append(protectionDomain).append(additionalProperties).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof ScaleIOFaultSetDataRestRep) == false) {
            return false;
        }
        ScaleIOFaultSetDataRestRep rhs = ((ScaleIOFaultSetDataRestRep) other);
        return new EqualsBuilder().append(id, rhs.id).append(name, rhs.name).append(protectionDomain, rhs.protectionDomain).append(additionalProperties, rhs.additionalProperties).isEquals();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy