
com.dell.cpsd.vcenter.capabilities.api.EnablePCIPassthroughRequestMessage Maven / Gradle / Ivy
Show all versions of virtualization-capabilities-api Show documentation
package com.dell.cpsd.vcenter.capabilities.api;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import com.dell.cpsd.common.rabbitmq.annotation.Message;
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.JsonPropertyDescription;
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;
/**
* Request to enable the PCI passthrough for a host.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Message(value = "com.dell.cpsd.controlplane.hypervisor.vcenter.enablePCI.request", version = "1.0")
@JsonPropertyOrder({
"messageProperties",
"credentials",
"hostname",
"hostPciDeviceId",
"componentEndpointIds"
})
public class EnablePCIPassthroughRequestMessage implements Serializable
{
/**
* AMQP properties properties
*
* AMQP properties.
* (Required)
*
*/
@JsonProperty("messageProperties")
@JsonPropertyDescription("AMQP properties.")
private MessageProperties messageProperties;
/**
*
* (Required)
*
*/
@JsonProperty("credentials")
private Credentials credentials;
/**
*
* (Required)
*
*/
@JsonProperty("hostname")
private String hostname;
/**
*
* (Required)
*
*/
@JsonProperty("hostPciDeviceId")
private String hostPciDeviceId;
/**
*
* Corresponds to the "componentEndpointIds" property.
*
*/
@JsonProperty("componentEndpointIds")
private ComponentEndpointIds componentEndpointIds;
@JsonIgnore
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = -7845300625261946727L;
/**
* No args constructor for use in serialization
*
*/
public EnablePCIPassthroughRequestMessage() {
}
/**
*
* @param hostPciDeviceId
* @param messageProperties
* @param hostname
* @param credentials
* @param componentEndpointIds
*/
public EnablePCIPassthroughRequestMessage(MessageProperties messageProperties, Credentials credentials, String hostname, String hostPciDeviceId, ComponentEndpointIds componentEndpointIds) {
super();
this.messageProperties = messageProperties;
this.credentials = credentials;
this.hostname = hostname;
this.hostPciDeviceId = hostPciDeviceId;
this.componentEndpointIds = componentEndpointIds;
}
/**
* AMQP properties properties
*
* AMQP properties.
* (Required)
*
*/
@JsonProperty("messageProperties")
public MessageProperties getMessageProperties() {
return messageProperties;
}
/**
* AMQP properties properties
*
* AMQP properties.
* (Required)
*
*/
@JsonProperty("messageProperties")
public void setMessageProperties(MessageProperties messageProperties) {
this.messageProperties = messageProperties;
}
/**
*
* (Required)
*
*/
@JsonProperty("credentials")
public Credentials getCredentials() {
return credentials;
}
/**
*
* (Required)
*
*/
@JsonProperty("credentials")
public void setCredentials(Credentials credentials) {
this.credentials = credentials;
}
/**
*
* (Required)
*
*/
@JsonProperty("hostname")
public String getHostname() {
return hostname;
}
/**
*
* (Required)
*
*/
@JsonProperty("hostname")
public void setHostname(String hostname) {
this.hostname = hostname;
}
/**
*
* (Required)
*
*/
@JsonProperty("hostPciDeviceId")
public String getHostPciDeviceId() {
return hostPciDeviceId;
}
/**
*
* (Required)
*
*/
@JsonProperty("hostPciDeviceId")
public void setHostPciDeviceId(String hostPciDeviceId) {
this.hostPciDeviceId = hostPciDeviceId;
}
/**
*
* Corresponds to the "componentEndpointIds" property.
*
*/
@JsonProperty("componentEndpointIds")
public ComponentEndpointIds getComponentEndpointIds() {
return componentEndpointIds;
}
/**
*
* Corresponds to the "componentEndpointIds" property.
*
*/
@JsonProperty("componentEndpointIds")
public void setComponentEndpointIds(ComponentEndpointIds componentEndpointIds) {
this.componentEndpointIds = componentEndpointIds;
}
@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(messageProperties).append(credentials).append(hostname).append(hostPciDeviceId).append(componentEndpointIds).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof EnablePCIPassthroughRequestMessage) == false) {
return false;
}
EnablePCIPassthroughRequestMessage rhs = ((EnablePCIPassthroughRequestMessage) other);
return new EqualsBuilder().append(messageProperties, rhs.messageProperties).append(credentials, rhs.credentials).append(hostname, rhs.hostname).append(hostPciDeviceId, rhs.hostPciDeviceId).append(componentEndpointIds, rhs.componentEndpointIds).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}