Class SchemaRequestBody
java.lang.Object
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.OCFOMASAPIRequestBody
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.SchemaRequestBody
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 Summary
-
Constructor Summary
ConstructorDescriptionDefault constructorSchemaRequestBody
(SchemaRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionReturn the names of the zones that this asset is a member of.Return the type of owner stored in the owner property.void
setSchemaAttributes
(List<SchemaAttribute> schemaAttributes) Set up the names of the zones that this asset is a member of.void
setSchemaType
(SchemaType schemaType) Set up the owner type for this asset.Methods inherited from class org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.OCFOMASAPIRequestBody
toString
-
Field Details
-
schemaType
-
schemaAttributes
-
-
Constructor Details
-
SchemaRequestBody
public SchemaRequestBody()Default constructor -
SchemaRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getSchemaType
Return the type of owner stored in the owner property.- Returns:
- AssetOwnerType enum
-
setSchemaType
Set up the owner type for this asset.- Parameters:
schemaType
- AssetOwnerType enum
-
getSchemaAttributes
Return the names of the zones that this asset is a member of.- Returns:
- list of zone names
-
setSchemaAttributes
Set up the names of the zones that this asset is a member of.- Parameters:
schemaAttributes
- list of zone names
-