Class RelationshipCreateRequest
java.lang.Object
org.odpi.openmetadata.repositoryservices.rest.properties.OMRSAPIRequest
org.odpi.openmetadata.repositoryservices.rest.properties.RelationshipCreateRequest
- All Implemented Interfaces:
Serializable
RelationshipCreateRequest provides the bean to hold all the properties needed to create a new
relationship.
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the unique identifier (GUID) for the first entity linked by the relationship.Return the unique identifier (GUID) for the second entity linked by the relationship.Return the list of properties for the new relationship.Return the initial status for the new relationship.Return the metadata collection id for this new relationshipReturn the name of the metadata collection for this new relationship.Return the type of the new relationship.int
hashCode()
Create a hash code for this element type.void
setEntityOneGUID
(String entityOneGUID) Set up the unique identifier (GUID) for the first entity linked by the relationship.void
setEntityTwoGUID
(String entityTwoGUID) Set up the unique identifier (GUID) for the second entity linked by the relationship.void
setInitialProperties
(InstanceProperties initialProperties) Set up the initial properties for the relationship.void
setInitialStatus
(InstanceStatus initialStatus) Set up the initial status for the new relationship.void
setMetadataCollectionId
(String metadataCollectionId) Set up the metadata collection id for this new relationship.void
setMetadataCollectionName
(String metadataCollectionName) Set up the name of the metadata collection for this new relationship.void
setRelationshipTypeGUID
(String relationshipTypeGUID) Set up the type of the new relationship.toString()
Standard toString method.
-
Constructor Details
-
RelationshipCreateRequest
public RelationshipCreateRequest()Default constructor -
RelationshipCreateRequest
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getRelationshipTypeGUID
Return the type of the new relationship.- Returns:
- String guid
-
setRelationshipTypeGUID
Set up the type of the new relationship.- Parameters:
relationshipTypeGUID
- String guid
-
getInitialProperties
Return the list of properties for the new relationship.- Returns:
- instance properties object
-
setInitialProperties
Set up the initial properties for the relationship.- Parameters:
initialProperties
- InstanceProperties object
-
getEntityOneGUID
Return the unique identifier (GUID) for the first entity linked by the relationship.- Returns:
- entity guid
-
setEntityOneGUID
Set up the unique identifier (GUID) for the first entity linked by the relationship.- Parameters:
entityOneGUID
- entity guid
-
getEntityTwoGUID
Return the unique identifier (GUID) for the second entity linked by the relationship.- Returns:
- entity guid
-
setEntityTwoGUID
Set up the unique identifier (GUID) for the second entity linked by the relationship.- Parameters:
entityTwoGUID
- entity guid
-
getInitialStatus
Return the initial status for the new relationship.- Returns:
- instance status enum
-
setInitialStatus
Set up the initial status for the new relationship.- Parameters:
initialStatus
- instance status enum
-
getMetadataCollectionId
Return the metadata collection id for this new relationship- Returns:
- guid
-
setMetadataCollectionId
Set up the metadata collection id for this new relationship. This field is optional for addRelationship and mandatory for addExternalRelationship.- Parameters:
metadataCollectionId
- guid
-
getMetadataCollectionName
Return the name of the metadata collection for this new relationship.- Returns:
- name
-
setMetadataCollectionName
Set up the name of the metadata collection for this new relationship.- Parameters:
metadataCollectionName
- name
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Create a hash code for this element type.
-