java.lang.Object
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.OCFOMASAPIRequestBody
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.SchemaRequestBody

public class SchemaRequestBody extends OCFOMASAPIRequestBody
SchemaRequestBody 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

    • SchemaRequestBody

      public SchemaRequestBody()
      Default constructor
    • SchemaRequestBody

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

    • getSchemaType

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

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

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

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