
com.dell.cpsd.vcenter.capabilities.api.VMwareDVSConfigInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtualization-capabilities-api Show documentation
Show all versions of virtualization-capabilities-api Show documentation
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({
"portSetting",
"hostMembers"
})
public class VMwareDVSConfigInfo implements Serializable
{
/**
*
* Corresponds to the "portSetting" property.
*
*/
@JsonProperty("portSetting")
private DVPortSetting portSetting;
@JsonProperty("hostMembers")
private List hostMembers = new ArrayList();
@JsonIgnore
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = 3041861251913649894L;
/**
* No args constructor for use in serialization
*
*/
public VMwareDVSConfigInfo() {
}
/**
*
* @param portSetting
* @param hostMembers
*/
public VMwareDVSConfigInfo(DVPortSetting portSetting, List hostMembers) {
super();
this.portSetting = portSetting;
this.hostMembers = hostMembers;
}
/**
*
* Corresponds to the "portSetting" property.
*
*/
@JsonProperty("portSetting")
public DVPortSetting getDVPortSetting() {
return portSetting;
}
/**
*
* Corresponds to the "portSetting" property.
*
*/
@JsonProperty("portSetting")
public void setDVPortSetting(DVPortSetting portSetting) {
this.portSetting = portSetting;
}
@JsonProperty("hostMembers")
public List getHostMembers() {
return hostMembers;
}
@JsonProperty("hostMembers")
public void setHostMembers(List hostMembers) {
this.hostMembers = hostMembers;
}
@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(portSetting).append(hostMembers).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof VMwareDVSConfigInfo) == false) {
return false;
}
VMwareDVSConfigInfo rhs = ((VMwareDVSConfigInfo) other);
return new EqualsBuilder().append(portSetting, rhs.portSetting).append(hostMembers, rhs.hostMembers).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy