org.odpi.openmetadata.commonservices.ffdc.rest.EventBrokerRequestBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ffdc-services Show documentation
Show all versions of ffdc-services Show documentation
Common services for First-Failure Data Capture (FFDC).
The newest version!
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.commonservices.ffdc.rest;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.odpi.openmetadata.frameworks.openmetadata.properties.softwarecapabilities.EventBrokerProperties;
import java.util.Objects;
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
/**
* EventBrokerRequestBody describes the basic properties of a event broker's software server capability.
*/
@JsonAutoDetect(getterVisibility=PUBLIC_ONLY, setterVisibility=PUBLIC_ONLY, fieldVisibility=NONE)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown=true)
public class EventBrokerRequestBody extends EventBrokerProperties
{
private String externalSourceGUID = null;
private String externalSourceName = null;
/**
* Default constructor
*/
public EventBrokerRequestBody()
{
super();
}
/**
* Copy/clone constructor.
*
* @param template object to copy
*/
public EventBrokerRequestBody(EventBrokerRequestBody template)
{
super(template);
if (template != null)
{
externalSourceGUID = template.getExternalSourceGUID();
externalSourceName = template.getExternalSourceName();
}
}
/**
* Copy/clone constructor.
*
* @param template object to copy
*/
public EventBrokerRequestBody(EventBrokerProperties template)
{
super(template);
}
/**
* Return the unique identifier of the software server capability entity that represented the external source - null for local.
*
* @return string guid
*/
public String getExternalSourceGUID()
{
return externalSourceGUID;
}
/**
* Set up the unique identifier of the software server capability entity that represented the external source - null for local.
*
* @param externalSourceGUID string guid
*/
public void setExternalSourceGUID(String externalSourceGUID)
{
this.externalSourceGUID = externalSourceGUID;
}
/**
* Return the unique name of the software server capability entity that represented the external source.
*
* @return string name
*/
public String getExternalSourceName()
{
return externalSourceName;
}
/**
* Set up the unique name of the software server capability entity that represented the external source.
*
* @param externalSourceName string name
*/
public void setExternalSourceName(String externalSourceName)
{
this.externalSourceName = externalSourceName;
}
/**
* JSON-style toString
*
* @return return string containing the property names and values
*/
@Override
public String toString()
{
return "EventBrokerRequestBody{" +
"externalSourceGUID='" + externalSourceGUID + '\'' +
", externalSourceName='" + externalSourceName + '\'' +
"} " + super.toString();
}
/**
* Return comparison result based on the content of the properties.
*
* @param objectToCompare test object
* @return result of comparison
*/
@Override
public boolean equals(Object objectToCompare)
{
if (this == objectToCompare)
{
return true;
}
if (objectToCompare == null || getClass() != objectToCompare.getClass())
{
return false;
}
if (!super.equals(objectToCompare))
{
return false;
}
EventBrokerRequestBody that = (EventBrokerRequestBody) objectToCompare;
return Objects.equals(externalSourceGUID, that.externalSourceGUID) &&
Objects.equals(externalSourceName, that.externalSourceName);
}
/**
* Return hash code for this object
*
* @return int hash code
*/
@Override
public int hashCode()
{
return Objects.hash(super.hashCode(), externalSourceGUID, externalSourceName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy