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

com.dell.cpsd.vcenter.capabilities.api.DistributedVirtualSwitchHostMemberConfigInfo 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.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({
    "hostId",
    "pnicBacking"
})
public class DistributedVirtualSwitchHostMemberConfigInfo implements Serializable
{

    @JsonProperty("hostId")
    private String hostId;
    /**
     * 
     * Corresponds to the "pnicBacking" property.
     * 
     */
    @JsonProperty("pnicBacking")
    private DistributedVirtualSwitchHostMemberPnicBacking pnicBacking;
    @JsonIgnore
    private Map additionalProperties = new HashMap();
    private final static long serialVersionUID = -86077632222384277L;

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

    /**
     * 
     * @param hostId
     * @param pnicBacking
     */
    public DistributedVirtualSwitchHostMemberConfigInfo(String hostId, DistributedVirtualSwitchHostMemberPnicBacking pnicBacking) {
        super();
        this.hostId = hostId;
        this.pnicBacking = pnicBacking;
    }

    @JsonProperty("hostId")
    public String getHostId() {
        return hostId;
    }

    @JsonProperty("hostId")
    public void setHostId(String hostId) {
        this.hostId = hostId;
    }

    /**
     * 
     * Corresponds to the "pnicBacking" property.
     * 
     */
    @JsonProperty("pnicBacking")
    public DistributedVirtualSwitchHostMemberPnicBacking getDistributedVirtualSwitchHostMemberPnicBacking() {
        return pnicBacking;
    }

    /**
     * 
     * Corresponds to the "pnicBacking" property.
     * 
     */
    @JsonProperty("pnicBacking")
    public void setDistributedVirtualSwitchHostMemberPnicBacking(DistributedVirtualSwitchHostMemberPnicBacking pnicBacking) {
        this.pnicBacking = pnicBacking;
    }

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

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof DistributedVirtualSwitchHostMemberConfigInfo) == false) {
            return false;
        }
        DistributedVirtualSwitchHostMemberConfigInfo rhs = ((DistributedVirtualSwitchHostMemberConfigInfo) other);
        return new EqualsBuilder().append(hostId, rhs.hostId).append(pnicBacking, rhs.pnicBacking).append(additionalProperties, rhs.additionalProperties).isEquals();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy