Class NewCollectionRequestBody
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.NewElementRequestBody
org.odpi.openmetadata.commonservices.ffdc.rest.NewCollectionRequestBody
- Direct Known Subclasses:
NewDigitalProductRequestBody
NewCollectionRequestBody describes the properties to create a new collection.
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the properties for the collection.int
hashCode()
Return hash code for this objectvoid
setCollectionProperties
(CollectionProperties digitalProductProperties) Set up the properties for the collection.toString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.NewElementRequestBody
getAnchorGUID, getIsOwnAnchor, getParentAtEnd1, getParentGUID, getParentRelationshipProperties, getParentRelationshipTypeName, setAnchorGUID, setIsOwnAnchor, setParentAtEnd1, setParentGUID, setParentRelationshipProperties, setParentRelationshipTypeName
-
Constructor Details
-
NewCollectionRequestBody
public NewCollectionRequestBody()Default constructor -
NewCollectionRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getCollectionProperties
Return the properties for the collection.- Returns:
- properties
-
setCollectionProperties
Set up the properties for the collection.- Parameters:
digitalProductProperties
- properties
-
toString
JSON-style toString.- Overrides:
toString
in classNewElementRequestBody
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classNewElementRequestBody
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classNewElementRequestBody
- Returns:
- int hash code
-