Package Avalara.SDK.model.A1099.V2
Class CreateW9Form201Response
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.AbstractOpenApiSchema
-
- Avalara.SDK.model.A1099.V2.CreateW9Form201Response
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class CreateW9Form201Response extends AbstractOpenApiSchema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateW9Form201Response.CustomTypeAdapterFactory
-
Constructor Summary
Constructors Constructor Description CreateW9Form201Response()CreateW9Form201Response(Object o)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateW9Form201ResponsefromJson(String jsonString)Create an instance of CreateW9Form201Response given an JSON stringObjectgetActualInstance()Get the actual instance, which can be the following: W4FormResponse, W8BenEFormResponse, W8BenFormResponse, W8ImyFormResponse, W9FormResponseMap<String,Class<?>>getSchemas()Get the list of oneOf/anyOf composed schemas allowed to be stored in this objectW4FormResponsegetW4FormResponse()Get the actual instance of `W4FormResponse`.W8BenEFormResponsegetW8BenEFormResponse()Get the actual instance of `W8BenEFormResponse`.W8BenFormResponsegetW8BenFormResponse()Get the actual instance of `W8BenFormResponse`.W8ImyFormResponsegetW8ImyFormResponse()Get the actual instance of `W8ImyFormResponse`.W9FormResponsegetW9FormResponse()Get the actual instance of `W9FormResponse`.voidsetActualInstance(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.StringtoJson()Convert an instance of CreateW9Form201Response to an JSON stringstatic voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found-
Methods inherited from class Avalara.SDK.model.A1099.V2.AbstractOpenApiSchema
equals, getActualInstanceRecursively, getSchemaType, hashCode, isNullable, toString
-
-
-
-
Constructor Detail
-
CreateW9Form201Response
public CreateW9Form201Response()
-
CreateW9Form201Response
public CreateW9Form201Response(Object o)
-
-
Method Detail
-
getSchemas
public Map<String,Class<?>> getSchemas()
Description copied from class:AbstractOpenApiSchemaGet the list of oneOf/anyOf composed schemas allowed to be stored in this object- Specified by:
getSchemasin classAbstractOpenApiSchema- Returns:
- an instance of the actual schema/object
-
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:
setActualInstancein classAbstractOpenApiSchema- 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:
getActualInstancein classAbstractOpenApiSchema- 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 IOExceptionValidates 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
-
-