Class CreateW9Form201Response

    • Constructor Detail

      • CreateW9Form201Response

        public CreateW9Form201Response()
      • CreateW9Form201Response

        public CreateW9Form201Response​(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: W4FormResponse, W8BenEFormResponse, W8BenFormResponse, W8ImyFormResponse, W9FormResponse 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: W4FormResponse, W8BenEFormResponse, W8BenFormResponse, W8ImyFormResponse, W9FormResponse
        Overrides:
        getActualInstance in class AbstractOpenApiSchema
        Returns:
        The actual instance (W4FormResponse, W8BenEFormResponse, W8BenFormResponse, W8ImyFormResponse, W9FormResponse)
      • getW4FormResponse

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

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

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

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

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

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

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