Class CombinedSchemaRequestBody
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetowner.rest.AssetOwnerOMASAPIRequestBody
-
- org.odpi.openmetadata.accessservices.assetowner.rest.CombinedSchemaRequestBody
-
- All Implemented Interfaces:
Serializable
public class CombinedSchemaRequestBody extends AssetOwnerOMASAPIRequestBody
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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<SchemaAttributeProperties>schemaAttributesprotected SchemaTypePropertiesschemaType
-
Constructor Summary
Constructors Constructor Description CombinedSchemaRequestBody()Default constructorCombinedSchemaRequestBody(CombinedSchemaRequestBody template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.List<SchemaAttributeProperties>getSchemaAttributes()Return the names of the zones that this asset is a member of.SchemaTypePropertiesgetSchemaType()Return the type of owner stored in the owner property.inthashCode()Return has code based on properties.voidsetSchemaAttributes(List<SchemaAttributeProperties> schemaAttributes)Set up the names of the zones that this asset is a member of.voidsetSchemaType(SchemaTypeProperties schemaType)Set up the owner type for this asset.StringtoString()Standard toString method.
-
-
-
Field Detail
-
schemaType
protected SchemaTypeProperties schemaType
-
schemaAttributes
protected List<SchemaAttributeProperties> schemaAttributes
-
-
Constructor Detail
-
CombinedSchemaRequestBody
public CombinedSchemaRequestBody()
Default constructor
-
CombinedSchemaRequestBody
public CombinedSchemaRequestBody(CombinedSchemaRequestBody template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getSchemaType
public SchemaTypeProperties getSchemaType()
Return the type of owner stored in the owner property.- Returns:
- OwnerType enum
-
setSchemaType
public void setSchemaType(SchemaTypeProperties schemaType)
Set up the owner type for this asset.- Parameters:
schemaType- OwnerType 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:
toStringin classAssetOwnerOMASAPIRequestBody- 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.
-
-