Class NewCollectionRequestBody

java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.NewElementRequestBody
org.odpi.openmetadata.commonservices.ffdc.rest.NewCollectionRequestBody
Direct Known Subclasses:
NewDigitalProductRequestBody

public class NewCollectionRequestBody extends NewElementRequestBody
NewCollectionRequestBody describes the properties to create a new collection.
  • Constructor Details

    • NewCollectionRequestBody

      public NewCollectionRequestBody()
      Default constructor
    • NewCollectionRequestBody

      public NewCollectionRequestBody(NewCollectionRequestBody template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getCollectionProperties

      public CollectionProperties getCollectionProperties()
      Return the properties for the collection.
      Returns:
      properties
    • setCollectionProperties

      public void setCollectionProperties(CollectionProperties digitalProductProperties)
      Set up the properties for the collection.
      Parameters:
      digitalProductProperties - properties
    • toString

      public String toString()
      JSON-style toString.
      Overrides:
      toString in class NewElementRequestBody
      Returns:
      list of properties and their values.
    • equals

      public boolean equals(Object objectToCompare)
      Equals method that returns true if containing properties are the same.
      Overrides:
      equals in class NewElementRequestBody
      Parameters:
      objectToCompare - object to compare
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class NewElementRequestBody
      Returns:
      int hash code