Class CreateCompanyRequest

    • Constructor Detail

      • CreateCompanyRequest

        public CreateCompanyRequest()
      • CreateCompanyRequest

        public CreateCompanyRequest​(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: CompanyCreateUpdateRequestModel, CompanyResponse 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: CompanyCreateUpdateRequestModel, CompanyResponse
        Overrides:
        getActualInstance in class AbstractOpenApiSchema
        Returns:
        The actual instance (CompanyCreateUpdateRequestModel, CompanyResponse)
      • getCompanyCreateUpdateRequestModel

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

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

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

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