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

com.dell.cpsd.vcenter.capabilities.api.NicSetting Maven / Gradle / Ivy

Go to download

This repository contains the source code for the virtualization capabilities API. This repository is used to define a data contract in JSON that is agnostic of the Adapter.

The newest version!

package com.dell.cpsd.vcenter.capabilities.api;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
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({
    "gateway",
    "ipAddress",
    "subnetMask",
    "networkName"
})
public class NicSetting implements Serializable
{

    @JsonProperty("gateway")
    private List gateway = new ArrayList();
    @JsonProperty("ipAddress")
    private String ipAddress;
    @JsonProperty("subnetMask")
    private String subnetMask;
    @JsonProperty("networkName")
    private String networkName;
    @JsonIgnore
    private Map additionalProperties = new HashMap();
    private final static long serialVersionUID = -5594298642678198522L;

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

    /**
     * 
     * @param ipAddress
     * @param networkName
     * @param subnetMask
     * @param gateway
     */
    public NicSetting(List gateway, String ipAddress, String subnetMask, String networkName) {
        super();
        this.gateway = gateway;
        this.ipAddress = ipAddress;
        this.subnetMask = subnetMask;
        this.networkName = networkName;
    }

    @JsonProperty("gateway")
    public List getGateway() {
        return gateway;
    }

    @JsonProperty("gateway")
    public void setGateway(List gateway) {
        this.gateway = gateway;
    }

    @JsonProperty("ipAddress")
    public String getIpAddress() {
        return ipAddress;
    }

    @JsonProperty("ipAddress")
    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    @JsonProperty("subnetMask")
    public String getSubnetMask() {
        return subnetMask;
    }

    @JsonProperty("subnetMask")
    public void setSubnetMask(String subnetMask) {
        this.subnetMask = subnetMask;
    }

    @JsonProperty("networkName")
    public String getNetworkName() {
        return networkName;
    }

    @JsonProperty("networkName")
    public void setNetworkName(String networkName) {
        this.networkName = networkName;
    }

    @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(gateway).append(ipAddress).append(subnetMask).append(networkName).append(additionalProperties).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof NicSetting) == false) {
            return false;
        }
        NicSetting rhs = ((NicSetting) other);
        return new EqualsBuilder().append(gateway, rhs.gateway).append(ipAddress, rhs.ipAddress).append(subnetMask, rhs.subnetMask).append(networkName, rhs.networkName).append(additionalProperties, rhs.additionalProperties).isEquals();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy