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

com.dell.cpsd.vcenter.capabilities.api.VmPowerOperationsRequestMessage 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 turn off or on virtual machine
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Message(value = "com.dell.cpsd.vcenter.vm.power.operation.request", version = "1.0")
@JsonPropertyOrder({
    "messageProperties",
    "endpointUrl",
    "powerOperationRequest",
    "componentEndpointIds"
})
public class VmPowerOperationsRequestMessage implements Serializable
{

    /**
     * AMQP properties properties
     * 

* AMQP properties. * (Required) * */ @JsonProperty("messageProperties") @JsonPropertyDescription("AMQP properties.") private MessageProperties messageProperties; /** * * (Required) * */ @JsonProperty("endpointUrl") private String endpointUrl; /** * * Corresponds to the "powerOperationRequest" property. * (Required) * */ @JsonProperty("powerOperationRequest") private VmPowerOperationRequest powerOperationRequest; /** * * Corresponds to the "componentEndpointIds" property. * (Required) * */ @JsonProperty("componentEndpointIds") private ComponentEndpointIds componentEndpointIds; @JsonIgnore private Map additionalProperties = new HashMap(); private final static long serialVersionUID = 4755627813388981982L; /** * No args constructor for use in serialization * */ public VmPowerOperationsRequestMessage() { } /** * * @param messageProperties * @param powerOperationRequest * @param endpointUrl * @param componentEndpointIds */ public VmPowerOperationsRequestMessage(MessageProperties messageProperties, String endpointUrl, VmPowerOperationRequest powerOperationRequest, ComponentEndpointIds componentEndpointIds) { super(); this.messageProperties = messageProperties; this.endpointUrl = endpointUrl; this.powerOperationRequest = powerOperationRequest; 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("endpointUrl") public String getEndpointUrl() { return endpointUrl; } /** * * (Required) * */ @JsonProperty("endpointUrl") public void setEndpointUrl(String endpointUrl) { this.endpointUrl = endpointUrl; } /** * * Corresponds to the "powerOperationRequest" property. * */ @JsonProperty("powerOperationRequest") public VmPowerOperationRequest getVmPowerOperationRequest() { return powerOperationRequest; } /** * * Corresponds to the "powerOperationRequest" property. * */ @JsonProperty("powerOperationRequest") public void setVmPowerOperationRequest(VmPowerOperationRequest powerOperationRequest) { this.powerOperationRequest = powerOperationRequest; } /** * * 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; } @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(endpointUrl).append(powerOperationRequest).append(componentEndpointIds).append(additionalProperties).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof VmPowerOperationsRequestMessage) == false) { return false; } VmPowerOperationsRequestMessage rhs = ((VmPowerOperationsRequestMessage) other); return new EqualsBuilder().append(messageProperties, rhs.messageProperties).append(endpointUrl, rhs.endpointUrl).append(powerOperationRequest, rhs.powerOperationRequest).append(componentEndpointIds, rhs.componentEndpointIds).append(additionalProperties, rhs.additionalProperties).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy