Package Avalara.SDK.model.A1099.V2
Class CreateAndSendW9FormEmailRequest
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.AbstractOpenApiSchema
-
- Avalara.SDK.model.A1099.V2.CreateAndSendW9FormEmailRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class CreateAndSendW9FormEmailRequest extends AbstractOpenApiSchema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateAndSendW9FormEmailRequest.CustomTypeAdapterFactory
-
Constructor Summary
Constructors Constructor Description CreateAndSendW9FormEmailRequest()CreateAndSendW9FormEmailRequest(Object o)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateAndSendW9FormEmailRequestfromJson(String jsonString)Create an instance of CreateAndSendW9FormEmailRequest given an JSON stringObjectgetActualInstance()Get the actual instance, which can be the following: W4FormMinimalRequest, W8BenEFormMinimalRequest, W8BenFormMinimalRequest, W8ImyFormMinimalRequest, W9FormMinimalRequestMap<String,Class<?>>getSchemas()Get the list of oneOf/anyOf composed schemas allowed to be stored in this objectW4FormMinimalRequestgetW4FormMinimalRequest()Get the actual instance of `W4FormMinimalRequest`.W8BenEFormMinimalRequestgetW8BenEFormMinimalRequest()Get the actual instance of `W8BenEFormMinimalRequest`.W8BenFormMinimalRequestgetW8BenFormMinimalRequest()Get the actual instance of `W8BenFormMinimalRequest`.W8ImyFormMinimalRequestgetW8ImyFormMinimalRequest()Get the actual instance of `W8ImyFormMinimalRequest`.W9FormMinimalRequestgetW9FormMinimalRequest()Get the actual instance of `W9FormMinimalRequest`.voidsetActualInstance(Object instance)Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: W4FormMinimalRequest, W8BenEFormMinimalRequest, W8BenFormMinimalRequest, W8ImyFormMinimalRequest, W9FormMinimalRequest It could be an instance of the 'oneOf' schemas.StringtoJson()Convert an instance of CreateAndSendW9FormEmailRequest 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
-
CreateAndSendW9FormEmailRequest
public CreateAndSendW9FormEmailRequest()
-
CreateAndSendW9FormEmailRequest
public CreateAndSendW9FormEmailRequest(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: W4FormMinimalRequest, W8BenEFormMinimalRequest, W8BenFormMinimalRequest, W8ImyFormMinimalRequest, W9FormMinimalRequest 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: W4FormMinimalRequest, W8BenEFormMinimalRequest, W8BenFormMinimalRequest, W8ImyFormMinimalRequest, W9FormMinimalRequest- Overrides:
getActualInstancein classAbstractOpenApiSchema- Returns:
- The actual instance (W4FormMinimalRequest, W8BenEFormMinimalRequest, W8BenFormMinimalRequest, W8ImyFormMinimalRequest, W9FormMinimalRequest)
-
getW4FormMinimalRequest
public W4FormMinimalRequest getW4FormMinimalRequest() throws ClassCastException
Get the actual instance of `W4FormMinimalRequest`. If the actual instance is not `W4FormMinimalRequest`, the ClassCastException will be thrown.- Returns:
- The actual instance of `W4FormMinimalRequest`
- Throws:
ClassCastException- if the instance is not `W4FormMinimalRequest`
-
getW8BenEFormMinimalRequest
public W8BenEFormMinimalRequest getW8BenEFormMinimalRequest() throws ClassCastException
Get the actual instance of `W8BenEFormMinimalRequest`. If the actual instance is not `W8BenEFormMinimalRequest`, the ClassCastException will be thrown.- Returns:
- The actual instance of `W8BenEFormMinimalRequest`
- Throws:
ClassCastException- if the instance is not `W8BenEFormMinimalRequest`
-
getW8BenFormMinimalRequest
public W8BenFormMinimalRequest getW8BenFormMinimalRequest() throws ClassCastException
Get the actual instance of `W8BenFormMinimalRequest`. If the actual instance is not `W8BenFormMinimalRequest`, the ClassCastException will be thrown.- Returns:
- The actual instance of `W8BenFormMinimalRequest`
- Throws:
ClassCastException- if the instance is not `W8BenFormMinimalRequest`
-
getW8ImyFormMinimalRequest
public W8ImyFormMinimalRequest getW8ImyFormMinimalRequest() throws ClassCastException
Get the actual instance of `W8ImyFormMinimalRequest`. If the actual instance is not `W8ImyFormMinimalRequest`, the ClassCastException will be thrown.- Returns:
- The actual instance of `W8ImyFormMinimalRequest`
- Throws:
ClassCastException- if the instance is not `W8ImyFormMinimalRequest`
-
getW9FormMinimalRequest
public W9FormMinimalRequest getW9FormMinimalRequest() throws ClassCastException
Get the actual instance of `W9FormMinimalRequest`. If the actual instance is not `W9FormMinimalRequest`, the ClassCastException will be thrown.- Returns:
- The actual instance of `W9FormMinimalRequest`
- Throws:
ClassCastException- if the instance is not `W9FormMinimalRequest`
-
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 CreateAndSendW9FormEmailRequest
-
fromJson
public static CreateAndSendW9FormEmailRequest fromJson(String jsonString) throws IOException
Create an instance of CreateAndSendW9FormEmailRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateAndSendW9FormEmailRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateAndSendW9FormEmailRequest
-
toJson
public String toJson()
Convert an instance of CreateAndSendW9FormEmailRequest to an JSON string- Returns:
- JSON string
-
-