Package Avalara.SDK.model.EInvoicing.V1
Class BatchSearch
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.BatchSearch
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class BatchSearch extends Object
Represents a single batch search operation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBatchSearch.CustomTypeAdapterFactorystatic classBatchSearch.StatusEnumStatus of the batch search
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CREATEDstatic StringSERIALIZED_NAME_CREATED_BYstatic StringSERIALIZED_NAME_ERRORstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LAST_MODIFIEDstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_STATUS
-
Constructor Summary
Constructors Constructor Description BatchSearch()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchSearchcreated(OffsetDateTime created)BatchSearchcreatedBy(String createdBy)booleanequals(Object o)BatchSearcherror(ErrorResponse error)static BatchSearchfromJson(String jsonString)Create an instance of BatchSearch given an JSON stringOffsetDateTimegetCreated()Timestamp when the batch search was createdStringgetCreatedBy()Email of the user who created the batch searchErrorResponsegetError()Get errorStringgetId()ID of the batch searchOffsetDateTimegetLastModified()Timestamp when the batch search was createdStringgetName()Name of the batch reportBatchSearch.StatusEnumgetStatus()Status of the batch searchinthashCode()BatchSearchid(String id)BatchSearchlastModified(OffsetDateTime lastModified)BatchSearchname(String name)voidsetCreated(OffsetDateTime created)voidsetCreatedBy(String createdBy)voidsetError(ErrorResponse error)voidsetId(String id)voidsetLastModified(OffsetDateTime lastModified)voidsetName(String name)voidsetStatus(BatchSearch.StatusEnum status)BatchSearchstatus(BatchSearch.StatusEnum status)StringtoJson()Convert an instance of BatchSearch to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_BY
public static final String SERIALIZED_NAME_CREATED_BY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED
public static final String SERIALIZED_NAME_CREATED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LAST_MODIFIED
public static final String SERIALIZED_NAME_LAST_MODIFIED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERROR
public static final String SERIALIZED_NAME_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public BatchSearch id(String id)
-
setId
public void setId(String id)
-
name
public BatchSearch name(String name)
-
setName
public void setName(String name)
-
createdBy
public BatchSearch createdBy(String createdBy)
-
getCreatedBy
@Nullable public String getCreatedBy()
Email of the user who created the batch search- Returns:
- createdBy
-
setCreatedBy
public void setCreatedBy(String createdBy)
-
created
public BatchSearch created(OffsetDateTime created)
-
getCreated
@Nullable public OffsetDateTime getCreated()
Timestamp when the batch search was created- Returns:
- created
-
setCreated
public void setCreated(OffsetDateTime created)
-
lastModified
public BatchSearch lastModified(OffsetDateTime lastModified)
-
getLastModified
@Nullable public OffsetDateTime getLastModified()
Timestamp when the batch search was created- Returns:
- lastModified
-
setLastModified
public void setLastModified(OffsetDateTime lastModified)
-
status
public BatchSearch status(BatchSearch.StatusEnum status)
-
getStatus
@Nullable public BatchSearch.StatusEnum getStatus()
Status of the batch search- Returns:
- status
-
setStatus
public void setStatus(BatchSearch.StatusEnum status)
-
error
public BatchSearch error(ErrorResponse error)
-
getError
@Nullable public ErrorResponse getError()
Get error- Returns:
- error
-
setError
public void setError(ErrorResponse error)
-
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 BatchSearch
-
fromJson
public static BatchSearch fromJson(String jsonString) throws IOException
Create an instance of BatchSearch given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BatchSearch
- Throws:
IOException- if the JSON string is invalid with respect to BatchSearch
-
toJson
public String toJson()
Convert an instance of BatchSearch to an JSON string- Returns:
- JSON string
-
-