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

com.dell.cpsd.vcenter.capabilities.api.PortGroup 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({
    "name",
    "id",
    "hostIds",
    "vmIds",
    "portKeys",
    "configInfo"
})
public class PortGroup implements Serializable
{

    @JsonProperty("name")
    private String name;
    @JsonProperty("id")
    private String id;
    @JsonProperty("hostIds")
    private List hostIds = new ArrayList();
    @JsonProperty("vmIds")
    private List vmIds = new ArrayList();
    @JsonProperty("portKeys")
    private List portKeys = new ArrayList();
    /**
     * 
     * Corresponds to the "configInfo" property.
     * 
     */
    @JsonProperty("configInfo")
    private DVPortgroupConfigInfo configInfo;
    @JsonIgnore
    private Map additionalProperties = new HashMap();
    private final static long serialVersionUID = -6486710088566795315L;

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

    /**
     * 
     * @param vmIds
     * @param portKeys
     * @param name
     * @param configInfo
     * @param id
     * @param hostIds
     */
    public PortGroup(String name, String id, List hostIds, List vmIds, List portKeys, DVPortgroupConfigInfo configInfo) {
        super();
        this.name = name;
        this.id = id;
        this.hostIds = hostIds;
        this.vmIds = vmIds;
        this.portKeys = portKeys;
        this.configInfo = configInfo;
    }

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

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

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

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

    @JsonProperty("hostIds")
    public List getHostIds() {
        return hostIds;
    }

    @JsonProperty("hostIds")
    public void setHostIds(List hostIds) {
        this.hostIds = hostIds;
    }

    @JsonProperty("vmIds")
    public List getVmIds() {
        return vmIds;
    }

    @JsonProperty("vmIds")
    public void setVmIds(List vmIds) {
        this.vmIds = vmIds;
    }

    @JsonProperty("portKeys")
    public List getPortKeys() {
        return portKeys;
    }

    @JsonProperty("portKeys")
    public void setPortKeys(List portKeys) {
        this.portKeys = portKeys;
    }

    /**
     * 
     * Corresponds to the "configInfo" property.
     * 
     */
    @JsonProperty("configInfo")
    public DVPortgroupConfigInfo getDVPortgroupConfigInfo() {
        return configInfo;
    }

    /**
     * 
     * Corresponds to the "configInfo" property.
     * 
     */
    @JsonProperty("configInfo")
    public void setDVPortgroupConfigInfo(DVPortgroupConfigInfo configInfo) {
        this.configInfo = configInfo;
    }

    @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(name).append(id).append(hostIds).append(vmIds).append(portKeys).append(configInfo).append(additionalProperties).toHashCode();
    }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy