Package com.exoscale.sdk.model
Class AbstractOpenApiSchema
- java.lang.Object
-
- com.exoscale.sdk.model.AbstractOpenApiSchema
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public abstract class AbstractOpenApiSchema extends Object
Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
-
-
Constructor Summary
Constructors Constructor Description AbstractOpenApiSchema(String schemaType, Boolean isNullable)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Object
getActualInstance()
Get the actual instanceObject
getActualInstanceRecursively()
Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as wellabstract Map<String,Class<?>>
getSchemas()
Get the list of oneOf/anyOf composed schemas allowed to be stored in this objectString
getSchemaType()
Get the schema type (e.g.int
hashCode()
Boolean
isNullable()
Is nullablevoid
setActualInstance(Object instance)
Set the actual instanceString
toString()
-
-
-
Method Detail
-
getSchemas
public abstract Map<String,Class<?>> getSchemas()
Get the list of oneOf/anyOf composed schemas allowed to be stored in this object- Returns:
- an instance of the actual schema/object
-
getActualInstance
public Object getActualInstance()
Get the actual instance- Returns:
- an instance of the actual schema/object
-
setActualInstance
public void setActualInstance(Object instance)
Set the actual instance- Parameters:
instance
- the actual instance of the schema/object
-
getActualInstanceRecursively
public Object getActualInstanceRecursively()
Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well- Returns:
- an instance of the actual schema/object
-
getSchemaType
public String getSchemaType()
Get the schema type (e.g. anyOf, oneOf)- Returns:
- the schema type
-
isNullable
public Boolean isNullable()
Is nullable- Returns:
- true if it's nullable
-
-