Class NewRelatedElementsRequestBody
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.search.BasicOptions
org.odpi.openmetadata.frameworks.openmetadata.search.MetadataSourceOptions
org.odpi.openmetadata.frameworks.openmetadata.search.MakeAnchorOptions
org.odpi.openmetadata.frameworkservices.omf.rest.NewRelatedElementsRequestBody
NewRelatedElementsRequestBody provides a structure for passing the properties for a new relationship between metadata elements.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Returns the unique identifier of the metadata element at end 1 of the relationship.Returns the unique identifier of the metadata element at end 2 of the relationship.Return the properties for the new relationship.Return the open metadata type name for the new metadata element.int
hashCode()
Return hash code for this objectvoid
setMetadataElement1GUID
(String metadataElement1GUID) Set up the unique identifier of the metadata element at end 1 of the relationship.void
setMetadataElement2GUID
(String metadataElement2GUID) Set up the unique identifier of the metadata element at end 2 of the relationship.void
setProperties
(NewElementProperties properties) Set up the properties for the new relationship.void
setTypeName
(String typeName) Set up the open metadata type name for the new metadata element.toString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.MakeAnchorOptions
getAnchorScopeGUID, getMakeAnchor, setAnchorScopeGUID, setMakeAnchor
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.MetadataSourceOptions
getExternalSourceGUID, getExternalSourceName, setExternalSourceGUID, setExternalSourceName
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.BasicOptions
getEffectiveTime, getForDuplicateProcessing, getForLineage, getGovernanceZoneFilter, setEffectiveTime, setForDuplicateProcessing, setForLineage, setGovernanceZoneFilter
-
Constructor Details
-
NewRelatedElementsRequestBody
public NewRelatedElementsRequestBody()Default constructor -
NewRelatedElementsRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
NewRelatedElementsRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getTypeName
Return the open metadata type name for the new metadata element.- Returns:
- string name
-
setTypeName
Set up the open metadata type name for the new metadata element.- Parameters:
typeName
- string name
-
setMetadataElement1GUID
Set up the unique identifier of the metadata element at end 1 of the relationship.- Parameters:
metadataElement1GUID
- String guid
-
getMetadataElement1GUID
Returns the unique identifier of the metadata element at end 1 of the relationship.- Returns:
- string guid
-
setMetadataElement2GUID
Set up the unique identifier of the metadata element at end 2 of the relationship.- Parameters:
metadataElement2GUID
- String guid
-
getMetadataElement2GUID
Returns the unique identifier of the metadata element at end 2 of the relationship.- Returns:
- string guid
-
getProperties
Return the properties for the new relationship.- Returns:
- list of properties
-
setProperties
Set up the properties for the new relationship.- Parameters:
properties
- list of properties
-
toString
JSON-style toString.- Overrides:
toString
in classMakeAnchorOptions
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classMakeAnchorOptions
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classMakeAnchorOptions
- Returns:
- int hash code
-