Class CreateW9FormRequest

    • Constructor Detail

      • CreateW9FormRequest

        public CreateW9FormRequest()
      • CreateW9FormRequest

        public CreateW9FormRequest​(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: W4FormRequest, W8BenEFormRequest, W8BenFormRequest, W8ImyFormRequest, W9FormRequest 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: W4FormRequest, W8BenEFormRequest, W8BenFormRequest, W8ImyFormRequest, W9FormRequest
        Overrides:
        getActualInstance in class AbstractOpenApiSchema
        Returns:
        The actual instance (W4FormRequest, W8BenEFormRequest, W8BenFormRequest, W8ImyFormRequest, W9FormRequest)
      • getW9FormRequest

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

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

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

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

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

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

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