Class SchemaRequestBody
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.OCFOMASAPIRequestBody
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.SchemaRequestBody
-
- All Implemented Interfaces:
Serializable
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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<SchemaAttribute>schemaAttributesprotected SchemaTypeschemaType
-
Constructor Summary
Constructors Constructor Description SchemaRequestBody()Default constructorSchemaRequestBody(SchemaRequestBody template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SchemaAttribute>getSchemaAttributes()Return the names of the zones that this asset is a member of.SchemaTypegetSchemaType()Return the type of owner stored in the owner property.voidsetSchemaAttributes(List<SchemaAttribute> schemaAttributes)Set up the names of the zones that this asset is a member of.voidsetSchemaType(SchemaType schemaType)Set up the owner type for this asset.-
Methods inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.OCFOMASAPIRequestBody
toString
-
-
-
-
Field Detail
-
schemaType
protected SchemaType schemaType
-
schemaAttributes
protected List<SchemaAttribute> schemaAttributes
-
-
Constructor Detail
-
SchemaRequestBody
public SchemaRequestBody()
Default constructor
-
SchemaRequestBody
public SchemaRequestBody(SchemaRequestBody template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getSchemaType
public SchemaType getSchemaType()
Return the type of owner stored in the owner property.- Returns:
- OwnerType enum
-
setSchemaType
public void setSchemaType(SchemaType schemaType)
Set up the owner type for this asset.- Parameters:
schemaType- OwnerType 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
-
-