Class NewMetadataElementRequestBody

java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.NewElementRequestBody
org.odpi.openmetadata.commonservices.ffdc.rest.NewMetadataElementRequestBody

public class NewMetadataElementRequestBody extends NewElementRequestBody
NewMetadataElementRequestBody provides a structure for passing the properties for a new metadata element.
  • Constructor Details

    • NewMetadataElementRequestBody

      public NewMetadataElementRequestBody()
      Default constructor
    • NewMetadataElementRequestBody

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

    • getTypeName

      public String getTypeName()
      Return the open metadata type name for the new metadata element.
      Returns:
      string name
    • setTypeName

      public void setTypeName(String typeName)
      Set up the open metadata type name for the new metadata element.
      Parameters:
      typeName - string name
    • getInitialStatus

      public ElementStatus getInitialStatus()
      Return the initial status of the metadata element (typically ACTIVE).
      Returns:
      element status enum value
    • getInitialClassifications

      public Map<String,ElementProperties> getInitialClassifications()
      Return the map of classification name to properties describing the initial classification for the new metadata element.
      Returns:
      map of classification name to classification properties (or null for none)
    • setInitialClassifications

      public void setInitialClassifications(Map<String,ElementProperties> initialClassifications)
      Set up the map of classification name to properties describing the initial classification for the new metadata element.
      Parameters:
      initialClassifications - map of classification name to classification properties (or null for none)
    • 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