Class CombinedSchemaRequestBody

java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.CombinedSchemaRequestBody

public class CombinedSchemaRequestBody extends Object
CombinedSchemaRequestBody carries the parameters for created a new schema to attach to an asset. A limited number of SchemaAttributes can accompany the SchemaType. If more SchemaAttributes are needed then use addSchemaAttributesToSchema() method.
  • Field Details

  • Constructor Details

    • CombinedSchemaRequestBody

      public CombinedSchemaRequestBody()
      Default constructor
    • CombinedSchemaRequestBody

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

    • getSchemaType

      public SchemaTypeProperties getSchemaType()
      Return the type of owner stored in the owner property.
      Returns:
      AssetOwnerType enum
    • setSchemaType

      public void setSchemaType(SchemaTypeProperties schemaType)
      Set up the owner type for this asset.
      Parameters:
      schemaType - AssetOwnerType enum
    • getSchemaAttributes

      public List<SchemaAttributeProperties> getSchemaAttributes()
      Return the names of the zones that this asset is a member of.
      Returns:
      list of zone names
    • setSchemaAttributes

      public void setSchemaAttributes(List<SchemaAttributeProperties> schemaAttributes)
      Set up the names of the zones that this asset is a member of.
      Parameters:
      schemaAttributes - list of zone names
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class Object
      Returns:
      int