Class NewCollectionRequestBody
java.lang.Object
org.odpi.openmetadata.viewservices.collectionmanager.rest.NewElementRequestBody
org.odpi.openmetadata.viewservices.collectionmanager.rest.NewCollectionRequestBody
- Direct Known Subclasses:
NewDigitalProductRequestBody
NewCollectionRequestBody describes the properties to create a new collection.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals method that returns true if containing properties are the same.org.odpi.openmetadata.accessservices.digitalservice.properties.CollectionPropertiesReturn the properties for the collection.inthashCode()Return hash code for this objectvoidsetCollectionProperties(org.odpi.openmetadata.accessservices.digitalservice.properties.CollectionProperties digitalProductProperties) Set up the properties for the collection.toString()JSON-style toString.Methods inherited from class org.odpi.openmetadata.viewservices.collectionmanager.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
public org.odpi.openmetadata.accessservices.digitalservice.properties.CollectionProperties getCollectionProperties()Return the properties for the collection.- Returns:
- properties
-
setCollectionProperties
public void setCollectionProperties(org.odpi.openmetadata.accessservices.digitalservice.properties.CollectionProperties digitalProductProperties) Set up the properties for the collection.- Parameters:
digitalProductProperties- properties
-
toString
JSON-style toString.- Overrides:
toStringin classNewElementRequestBody- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equalsin classNewElementRequestBody- Parameters:
objectToCompare- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classNewElementRequestBody- Returns:
- int hash code
-