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

com.dell.cpsd.vcenter.capabilities.api.ConfigureVmNetworkSettingsRequestMessage 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.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 configure network settings of a VM
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Message(value = "com.dell.cpsd.vcenter.configure.vm.network.settings.request", version = "1.0")
@JsonPropertyOrder({
    "messageProperties",
    "hostname",
    "vmName",
    "endpointUrl",
    "componentEndpointIds",
    "networkSettingsMap"
})
public class ConfigureVmNetworkSettingsRequestMessage implements Serializable
{

    /**
     * AMQP properties properties
     * 

* AMQP properties. * (Required) * */ @JsonProperty("messageProperties") @JsonPropertyDescription("AMQP properties.") private MessageProperties messageProperties; /** * * (Required) * */ @JsonProperty("hostname") private java.lang.String hostname; /** * * (Required) * */ @JsonProperty("vmName") private java.lang.String vmName; /** * * (Required) * */ @JsonProperty("endpointUrl") private java.lang.String endpointUrl; /** * * Corresponds to the "componentEndpointIds" property. * (Required) * */ @JsonProperty("componentEndpointIds") private ComponentEndpointIds componentEndpointIds; @JsonProperty("networkSettingsMap") private Map networkSettingsMap; @JsonIgnore private Map additionalProperties = new HashMap(); private final static long serialVersionUID = -7667216971346626403L; /** * No args constructor for use in serialization * */ public ConfigureVmNetworkSettingsRequestMessage() { } /** * * @param messageProperties * @param hostname * @param vmName * @param endpointUrl * @param networkSettingsMap * @param componentEndpointIds */ public ConfigureVmNetworkSettingsRequestMessage(MessageProperties messageProperties, java.lang.String hostname, java.lang.String vmName, java.lang.String endpointUrl, ComponentEndpointIds componentEndpointIds, Map networkSettingsMap) { super(); this.messageProperties = messageProperties; this.hostname = hostname; this.vmName = vmName; this.endpointUrl = endpointUrl; this.componentEndpointIds = componentEndpointIds; this.networkSettingsMap = networkSettingsMap; } /** * 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("hostname") public java.lang.String getHostname() { return hostname; } /** * * (Required) * */ @JsonProperty("hostname") public void setHostname(java.lang.String hostname) { this.hostname = hostname; } /** * * (Required) * */ @JsonProperty("vmName") public java.lang.String getVmName() { return vmName; } /** * * (Required) * */ @JsonProperty("vmName") public void setVmName(java.lang.String vmName) { this.vmName = vmName; } /** * * (Required) * */ @JsonProperty("endpointUrl") public java.lang.String getEndpointUrl() { return endpointUrl; } /** * * (Required) * */ @JsonProperty("endpointUrl") public void setEndpointUrl(java.lang.String endpointUrl) { this.endpointUrl = endpointUrl; } /** * * Corresponds to the "componentEndpointIds" property. * (Required) * */ @JsonProperty("componentEndpointIds") public ComponentEndpointIds getComponentEndpointIds() { return componentEndpointIds; } /** * * Corresponds to the "componentEndpointIds" property. * (Required) * */ @JsonProperty("componentEndpointIds") public void setComponentEndpointIds(ComponentEndpointIds componentEndpointIds) { this.componentEndpointIds = componentEndpointIds; } @JsonProperty("networkSettingsMap") public Map getNetworkSettingsMap() { return networkSettingsMap; } @JsonProperty("networkSettingsMap") public void setNetworkSettingsMap(Map networkSettingsMap) { this.networkSettingsMap = networkSettingsMap; } @Override public java.lang.String toString() { return ToStringBuilder.reflectionToString(this); } @JsonAnyGetter public Map getAdditionalProperties() { return this.additionalProperties; } @JsonAnySetter public void setAdditionalProperty(java.lang.String name, Object value) { this.additionalProperties.put(name, value); } @Override public int hashCode() { return new HashCodeBuilder().append(messageProperties).append(hostname).append(vmName).append(endpointUrl).append(componentEndpointIds).append(networkSettingsMap).append(additionalProperties).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof ConfigureVmNetworkSettingsRequestMessage) == false) { return false; } ConfigureVmNetworkSettingsRequestMessage rhs = ((ConfigureVmNetworkSettingsRequestMessage) other); return new EqualsBuilder().append(messageProperties, rhs.messageProperties).append(hostname, rhs.hostname).append(vmName, rhs.vmName).append(endpointUrl, rhs.endpointUrl).append(componentEndpointIds, rhs.componentEndpointIds).append(networkSettingsMap, rhs.networkSettingsMap).append(additionalProperties, rhs.additionalProperties).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy