Package org.openapitools.client.model
Class ReturnQueuedChunk
- java.lang.Object
-
- org.openapitools.client.model.AbstractOpenApiSchema
-
- org.openapitools.client.model.ReturnQueuedChunk
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]", comments="Generator version: 7.4.0") public class ReturnQueuedChunk extends AbstractOpenApiSchema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReturnQueuedChunk.CustomTypeAdapterFactory
-
Constructor Summary
Constructors Constructor Description ReturnQueuedChunk()ReturnQueuedChunk(BatchQueuedChunkResponse o)ReturnQueuedChunk(SingleQueuedChunkResponse o)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReturnQueuedChunkfromJson(String jsonString)Create an instance of ReturnQueuedChunk given an JSON stringObjectgetActualInstance()Get the actual instance, which can be the following: BatchQueuedChunkResponse, SingleQueuedChunkResponseBatchQueuedChunkResponsegetBatchQueuedChunkResponse()Get the actual instance of `BatchQueuedChunkResponse`.Map<String,Class<?>>getSchemas()Get the list of oneOf/anyOf composed schemas allowed to be stored in this objectSingleQueuedChunkResponsegetSingleQueuedChunkResponse()Get the actual instance of `SingleQueuedChunkResponse`.voidsetActualInstance(Object instance)Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: BatchQueuedChunkResponse, SingleQueuedChunkResponse It could be an instance of the 'oneOf' schemas.StringtoJson()Convert an instance of ReturnQueuedChunk to an JSON stringstatic voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found-
Methods inherited from class org.openapitools.client.model.AbstractOpenApiSchema
equals, getActualInstanceRecursively, getSchemaType, hashCode, isNullable, toString
-
-
-
-
Constructor Detail
-
ReturnQueuedChunk
public ReturnQueuedChunk()
-
ReturnQueuedChunk
public ReturnQueuedChunk(BatchQueuedChunkResponse o)
-
ReturnQueuedChunk
public ReturnQueuedChunk(SingleQueuedChunkResponse o)
-
-
Method Detail
-
getSchemas
public Map<String,Class<?>> getSchemas()
Description copied from class:AbstractOpenApiSchemaGet the list of oneOf/anyOf composed schemas allowed to be stored in this object- Specified by:
getSchemasin classAbstractOpenApiSchema- Returns:
- an instance of the actual schema/object
-
setActualInstance
public void setActualInstance(Object instance)
Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: BatchQueuedChunkResponse, SingleQueuedChunkResponse It could be an instance of the 'oneOf' schemas.- Overrides:
setActualInstancein classAbstractOpenApiSchema- Parameters:
instance- the actual instance of the schema/object
-
getActualInstance
public Object getActualInstance()
Get the actual instance, which can be the following: BatchQueuedChunkResponse, SingleQueuedChunkResponse- Overrides:
getActualInstancein classAbstractOpenApiSchema- Returns:
- The actual instance (BatchQueuedChunkResponse, SingleQueuedChunkResponse)
-
getSingleQueuedChunkResponse
public SingleQueuedChunkResponse getSingleQueuedChunkResponse() throws ClassCastException
Get the actual instance of `SingleQueuedChunkResponse`. If the actual instance is not `SingleQueuedChunkResponse`, the ClassCastException will be thrown.- Returns:
- The actual instance of `SingleQueuedChunkResponse`
- Throws:
ClassCastException- if the instance is not `SingleQueuedChunkResponse`
-
getBatchQueuedChunkResponse
public BatchQueuedChunkResponse getBatchQueuedChunkResponse() throws ClassCastException
Get the actual instance of `BatchQueuedChunkResponse`. If the actual instance is not `BatchQueuedChunkResponse`, the ClassCastException will be thrown.- Returns:
- The actual instance of `BatchQueuedChunkResponse`
- Throws:
ClassCastException- if the instance is not `BatchQueuedChunkResponse`
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ReturnQueuedChunk
-
fromJson
public static ReturnQueuedChunk fromJson(String jsonString) throws IOException
Create an instance of ReturnQueuedChunk given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ReturnQueuedChunk
- Throws:
IOException- if the JSON string is invalid with respect to ReturnQueuedChunk
-
toJson
public String toJson()
Convert an instance of ReturnQueuedChunk to an JSON string- Returns:
- JSON string
-
-