Class CreateChunkData

    • Constructor Detail

      • CreateChunkData

        public CreateChunkData()
      • CreateChunkData

        public CreateChunkData​(ChunkData o)
      • CreateChunkData

        public CreateChunkData​(List<@Valid ChunkData> o)
    • Method Detail

      • 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: ChunkData, List<@Valid ChunkData> It could be an instance of the 'oneOf' schemas.
        Overrides:
        setActualInstance in class AbstractOpenApiSchema
        Parameters:
        instance - the actual instance of the schema/object
      • getActualInstance

        public Object getActualInstance()
        Get the actual instance, which can be the following: ChunkData, List<@Valid ChunkData>
        Overrides:
        getActualInstance in class AbstractOpenApiSchema
        Returns:
        The actual instance (ChunkData, List<@Valid ChunkData>)
      • getChunkData

        public ChunkData getChunkData()
                               throws ClassCastException
        Get the actual instance of `ChunkData`. If the actual instance is not `ChunkData`, the ClassCastException will be thrown.
        Returns:
        The actual instance of `ChunkData`
        Throws:
        ClassCastException - if the instance is not `ChunkData`
      • getChunkDataList

        public List<@Valid ChunkData> getChunkDataList()
                                                throws ClassCastException
        Get the actual instance of `List<@Valid ChunkData>`. If the actual instance is not `List<@Valid ChunkData>`, the ClassCastException will be thrown.
        Returns:
        The actual instance of `List<@Valid ChunkData>`
        Throws:
        ClassCastException - if the instance is not `List<@Valid ChunkData>`
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates 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 CreateChunkData
      • fromJson

        public static CreateChunkData fromJson​(String jsonString)
                                        throws IOException
        Create an instance of CreateChunkData given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CreateChunkData
        Throws:
        IOException - if the JSON string is invalid with respect to CreateChunkData
      • toJson

        public String toJson()
        Convert an instance of CreateChunkData to an JSON string
        Returns:
        JSON string