Package Avalara.SDK.model.A1099.V2
Class CreateIssuerRequest
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.AbstractOpenApiSchema
-
- Avalara.SDK.model.A1099.V2.CreateIssuerRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class CreateIssuerRequest extends AbstractOpenApiSchema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateIssuerRequest.CustomTypeAdapterFactory
-
Constructor Summary
Constructors Constructor Description CreateIssuerRequest()CreateIssuerRequest(Object o)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateIssuerRequestfromJson(String jsonString)Create an instance of CreateIssuerRequest given an JSON stringObjectgetActualInstance()Get the actual instance, which can be the following: IssuerCommand, IssuerResponseIssuerCommandgetIssuerCommand()Get the actual instance of `IssuerCommand`.IssuerResponsegetIssuerResponse()Get the actual instance of `IssuerResponse`.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: IssuerCommand, IssuerResponse It could be an instance of the 'oneOf' schemas.StringtoJson()Convert an instance of CreateIssuerRequest 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
-
CreateIssuerRequest
public CreateIssuerRequest()
-
CreateIssuerRequest
public CreateIssuerRequest(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: IssuerCommand, IssuerResponse 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: IssuerCommand, IssuerResponse- Overrides:
getActualInstancein classAbstractOpenApiSchema- Returns:
- The actual instance (IssuerCommand, IssuerResponse)
-
getIssuerCommand
public IssuerCommand getIssuerCommand() throws ClassCastException
Get the actual instance of `IssuerCommand`. If the actual instance is not `IssuerCommand`, the ClassCastException will be thrown.- Returns:
- The actual instance of `IssuerCommand`
- Throws:
ClassCastException- if the instance is not `IssuerCommand`
-
getIssuerResponse
public IssuerResponse getIssuerResponse() throws ClassCastException
Get the actual instance of `IssuerResponse`. If the actual instance is not `IssuerResponse`, the ClassCastException will be thrown.- Returns:
- The actual instance of `IssuerResponse`
- Throws:
ClassCastException- if the instance is not `IssuerResponse`
-
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 CreateIssuerRequest
-
fromJson
public static CreateIssuerRequest fromJson(String jsonString) throws IOException
Create an instance of CreateIssuerRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateIssuerRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateIssuerRequest
-
toJson
public String toJson()
Convert an instance of CreateIssuerRequest to an JSON string- Returns:
- JSON string
-
-