Package Avalara.SDK.model.A1099.V2
Class BulkUpsert1099FormsRequest
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.AbstractOpenApiSchema
-
- Avalara.SDK.model.A1099.V2.BulkUpsert1099FormsRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class BulkUpsert1099FormsRequest extends AbstractOpenApiSchema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBulkUpsert1099FormsRequest.CustomTypeAdapterFactory
-
Constructor Summary
Constructors Constructor Description BulkUpsert1099FormsRequest()BulkUpsert1099FormsRequest(Object o)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BulkUpsert1099FormsRequestfromJson(String jsonString)Create an instance of BulkUpsert1099FormsRequest given an JSON stringObjectgetActualInstance()Get the actual instance, which can be the following: Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RListForm1042SListgetForm1042SList()Get the actual instance of `Form1042SList`.Form1095BListgetForm1095BList()Get the actual instance of `Form1095BList`.Form1095CListgetForm1095CList()Get the actual instance of `Form1095CList`.Form1099DivListgetForm1099DivList()Get the actual instance of `Form1099DivList`.Form1099KListgetForm1099KList()Get the actual instance of `Form1099KList`.Form1099MiscListgetForm1099MiscList()Get the actual instance of `Form1099MiscList`.Form1099NecListgetForm1099NecList()Get the actual instance of `Form1099NecList`.Form1099RListgetForm1099RList()Get the actual instance of `Form1099RList`.Map<String,Class<?>>getSchemas()Get the list of oneOf/anyOf composed schemas allowed to be stored in this objectvoidsetActualInstance(Object instance)Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList It could be an instance of the 'oneOf' schemas.StringtoJson()Convert an instance of BulkUpsert1099FormsRequest 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
-
BulkUpsert1099FormsRequest
public BulkUpsert1099FormsRequest()
-
BulkUpsert1099FormsRequest
public BulkUpsert1099FormsRequest(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: Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList 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: Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList- Overrides:
getActualInstancein classAbstractOpenApiSchema- Returns:
- The actual instance (Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList)
-
getForm1042SList
public Form1042SList getForm1042SList() throws ClassCastException
Get the actual instance of `Form1042SList`. If the actual instance is not `Form1042SList`, the ClassCastException will be thrown.- Returns:
- The actual instance of `Form1042SList`
- Throws:
ClassCastException- if the instance is not `Form1042SList`
-
getForm1095BList
public Form1095BList getForm1095BList() throws ClassCastException
Get the actual instance of `Form1095BList`. If the actual instance is not `Form1095BList`, the ClassCastException will be thrown.- Returns:
- The actual instance of `Form1095BList`
- Throws:
ClassCastException- if the instance is not `Form1095BList`
-
getForm1095CList
public Form1095CList getForm1095CList() throws ClassCastException
Get the actual instance of `Form1095CList`. If the actual instance is not `Form1095CList`, the ClassCastException will be thrown.- Returns:
- The actual instance of `Form1095CList`
- Throws:
ClassCastException- if the instance is not `Form1095CList`
-
getForm1099DivList
public Form1099DivList getForm1099DivList() throws ClassCastException
Get the actual instance of `Form1099DivList`. If the actual instance is not `Form1099DivList`, the ClassCastException will be thrown.- Returns:
- The actual instance of `Form1099DivList`
- Throws:
ClassCastException- if the instance is not `Form1099DivList`
-
getForm1099KList
public Form1099KList getForm1099KList() throws ClassCastException
Get the actual instance of `Form1099KList`. If the actual instance is not `Form1099KList`, the ClassCastException will be thrown.- Returns:
- The actual instance of `Form1099KList`
- Throws:
ClassCastException- if the instance is not `Form1099KList`
-
getForm1099MiscList
public Form1099MiscList getForm1099MiscList() throws ClassCastException
Get the actual instance of `Form1099MiscList`. If the actual instance is not `Form1099MiscList`, the ClassCastException will be thrown.- Returns:
- The actual instance of `Form1099MiscList`
- Throws:
ClassCastException- if the instance is not `Form1099MiscList`
-
getForm1099NecList
public Form1099NecList getForm1099NecList() throws ClassCastException
Get the actual instance of `Form1099NecList`. If the actual instance is not `Form1099NecList`, the ClassCastException will be thrown.- Returns:
- The actual instance of `Form1099NecList`
- Throws:
ClassCastException- if the instance is not `Form1099NecList`
-
getForm1099RList
public Form1099RList getForm1099RList() throws ClassCastException
Get the actual instance of `Form1099RList`. If the actual instance is not `Form1099RList`, the ClassCastException will be thrown.- Returns:
- The actual instance of `Form1099RList`
- Throws:
ClassCastException- if the instance is not `Form1099RList`
-
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 BulkUpsert1099FormsRequest
-
fromJson
public static BulkUpsert1099FormsRequest fromJson(String jsonString) throws IOException
Create an instance of BulkUpsert1099FormsRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BulkUpsert1099FormsRequest
- Throws:
IOException- if the JSON string is invalid with respect to BulkUpsert1099FormsRequest
-
toJson
public String toJson()
Convert an instance of BulkUpsert1099FormsRequest to an JSON string- Returns:
- JSON string
-
-