org.odpi.openmetadata.commonservices.ffdc.rest.GovernanceRoleRequestBody 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.governance.GovernanceRoleProperties;
import java.util.Objects;
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
/**
* GovernanceDefinitionRequestBody provides a structure used when creating governance definitions.
*/
@JsonAutoDetect(getterVisibility=PUBLIC_ONLY, setterVisibility=PUBLIC_ONLY, fieldVisibility=NONE)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown=true)
public class GovernanceRoleRequestBody extends ExternalSourceRequestBody
{
private GovernanceRoleProperties properties = null;
/**
* Default constructor
*/
public GovernanceRoleRequestBody()
{
}
/**
* Copy/clone constructor
*
* @param template object to copy
*/
public GovernanceRoleRequestBody(GovernanceRoleRequestBody template)
{
super(template);
if (template != null)
{
this.properties = template.getProperties();
}
}
/**
* Return the properties of the governance role.
*
* @return properties
*/
public GovernanceRoleProperties getProperties()
{
return properties;
}
/**
* Set up the properties of the governance role.
*
* @param properties properties
*/
public void setProperties(GovernanceRoleProperties properties)
{
this.properties = properties;
}
/**
* JSON-style toString.
*
* @return list of properties and their values.
*/
@Override
public String toString()
{
return "GovernanceRoleRequestBody{" +
"externalSourceGUID='" + getExternalSourceGUID() + '\'' +
", externalSourceName='" + getExternalSourceName() + '\'' +
", properties=" + properties +
'}';
}
/**
* Equals method that returns true if containing properties are the same.
*
* @param objectToCompare object to compare
* @return boolean result of comparison
*/
@Override
public boolean equals(Object objectToCompare)
{
if (this == objectToCompare)
{
return true;
}
if (! (objectToCompare instanceof GovernanceRoleRequestBody))
{
return false;
}
if (! super.equals(objectToCompare))
{
return false;
}
GovernanceRoleRequestBody that = (GovernanceRoleRequestBody) objectToCompare;
return Objects.equals(properties, that.properties);
}
/**
* Return hash code for this object
*
* @return int hash code
*/
@Override
public int hashCode()
{
return Objects.hash(super.hashCode(), properties);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy