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

com.dell.cpsd.hdp.capability.registry.api.CapabilityRegistryErrorMessage Maven / Gradle / Ivy


package com.dell.cpsd.hdp.capability.registry.api;

import java.util.ArrayList;
import java.util.List;
import com.dell.cpsd.common.rabbitmq.annotation.Message;
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.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * CapabilityRegistryErrorMessage
 * 

* The message sent when there is an error in the capability registry. *

* Copyright © 2017 Dell Inc. or its subsidiaries. All Rights Reserved. * Dell EMC Confidential/Proprietary Information *

* */ @JsonInclude(JsonInclude.Include.NON_NULL) @Message(value = "com.dell.cpsd.hdp.capability.registry.error", version = "1.0") @JsonPropertyOrder({ "hostname", "errors" }) public class CapabilityRegistryErrorMessage { /** * Hostname *

* * Corresponds to the "hostname" property.The name of the registry host. * */ @JsonProperty("hostname") @JsonPropertyDescription("") private String hostname; /** * * (Required) * */ @JsonProperty("errors") private List errors = new ArrayList(); /** * No args constructor for use in serialization * */ public CapabilityRegistryErrorMessage() { } /** * * @param hostname * @param errors */ public CapabilityRegistryErrorMessage(String hostname, List errors) { super(); this.hostname = hostname; this.errors = errors; } /** * Hostname *

* * Corresponds to the "hostname" property.The name of the registry host. * * @return * The hostname */ @JsonProperty("hostname") public String getHostname() { return hostname; } /** * Hostname *

* * Corresponds to the "hostname" property.The name of the registry host. * * @param hostname * The hostname */ @JsonProperty("hostname") public void setHostname(String hostname) { this.hostname = hostname; } /** * * (Required) * * @return * The errors */ @JsonProperty("errors") public List getErrors() { return errors; } /** * * (Required) * * @param errors * The errors */ @JsonProperty("errors") public void setErrors(List errors) { this.errors = errors; } @Override public String toString() { return ToStringBuilder.reflectionToString(this); } @Override public int hashCode() { return new HashCodeBuilder().append(hostname).append(errors).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof CapabilityRegistryErrorMessage) == false) { return false; } CapabilityRegistryErrorMessage rhs = ((CapabilityRegistryErrorMessage) other); return new EqualsBuilder().append(hostname, rhs.hostname).append(errors, rhs.errors).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy