Package Avalara.SDK.model.A1099.V2
Class CreateW9FormRequest
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.AbstractOpenApiSchema
-
- Avalara.SDK.model.A1099.V2.CreateW9FormRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class CreateW9FormRequest extends AbstractOpenApiSchema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateW9FormRequest.CustomTypeAdapterFactory
-
Constructor Summary
Constructors Constructor Description CreateW9FormRequest()CreateW9FormRequest(Object o)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateW9FormRequestfromJson(String jsonString)Create an instance of CreateW9FormRequest given an JSON stringObjectgetActualInstance()Get the actual instance, which can be the following: W4FormRequest, W8BenEFormRequest, W8BenFormRequest, W8ImyFormRequest, W9FormRequestMap<String,Class<?>>getSchemas()Get the list of oneOf/anyOf composed schemas allowed to be stored in this objectW4FormRequestgetW4FormRequest()Get the actual instance of `W4FormRequest`.W8BenEFormRequestgetW8BenEFormRequest()Get the actual instance of `W8BenEFormRequest`.W8BenFormRequestgetW8BenFormRequest()Get the actual instance of `W8BenFormRequest`.W8ImyFormRequestgetW8ImyFormRequest()Get the actual instance of `W8ImyFormRequest`.W9FormRequestgetW9FormRequest()Get the actual instance of `W9FormRequest`.voidsetActualInstance(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.StringtoJson()Convert an instance of CreateW9FormRequest 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
-
CreateW9FormRequest
public CreateW9FormRequest()
-
CreateW9FormRequest
public CreateW9FormRequest(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: W4FormRequest, W8BenEFormRequest, W8BenFormRequest, W8ImyFormRequest, W9FormRequest 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: W4FormRequest, W8BenEFormRequest, W8BenFormRequest, W8ImyFormRequest, W9FormRequest- Overrides:
getActualInstancein classAbstractOpenApiSchema- 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 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 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
-
-