Class IUpdateForm1099Request

    • Constructor Detail

      • IUpdateForm1099Request

        public IUpdateForm1099Request()
      • IUpdateForm1099Request

        public IUpdateForm1099Request​(Object 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: Form1099DivRequest, Form1099KRequest, Form1099MiscRequest, Form1099NecRequest 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: Form1099DivRequest, Form1099KRequest, Form1099MiscRequest, Form1099NecRequest
        Overrides:
        getActualInstance in class AbstractOpenApiSchema
        Returns:
        The actual instance (Form1099DivRequest, Form1099KRequest, Form1099MiscRequest, Form1099NecRequest)
      • getForm1099DivRequest

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

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

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

        public Form1099NecRequest getForm1099NecRequest()
                                                 throws ClassCastException
        Get the actual instance of `Form1099NecRequest`. If the actual instance is not `Form1099NecRequest`, the ClassCastException will be thrown.
        Returns:
        The actual instance of `Form1099NecRequest`
        Throws:
        ClassCastException - if the instance is not `Form1099NecRequest`
      • 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 IUpdateForm1099Request
      • fromJson

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

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