Package Avalara.SDK.model.EInvoicing.V1
Class WebhookInvocation
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.WebhookInvocation
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class WebhookInvocation extends Object
WebhookInvocation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhookInvocation.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_INVOCATION_TIMESTAMPstatic StringSERIALIZED_NAME_ITEMSstatic StringSERIALIZED_NAME_RETRY_COUNTstatic StringSERIALIZED_NAME_RETRY_MAXstatic StringSERIALIZED_NAME_RETRY_TIMESTAMP
-
Constructor Summary
Constructors Constructor Description WebhookInvocation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookInvocationaddItemsItem(EventMessage itemsItem)booleanequals(Object o)static WebhookInvocationfromJson(String jsonString)Create an instance of WebhookInvocation given an JSON stringUUIDgetId()Unique identifier of this specific resource.OffsetDateTimegetInvocationTimestamp()Initial timestamp of the first invocation attempt.List<EventMessage>getItems()Array of events being delivered in the webhookIntegergetRetryCount()The number of invocation attempts.IntegergetRetryMax()The maximum retries that may be attempted in total.OffsetDateTimegetRetryTimestamp()Timestamp of this invocation attempt.inthashCode()WebhookInvocationid(UUID id)WebhookInvocationinvocationTimestamp(OffsetDateTime invocationTimestamp)WebhookInvocationitems(List<EventMessage> items)WebhookInvocationretryCount(Integer retryCount)WebhookInvocationretryMax(Integer retryMax)WebhookInvocationretryTimestamp(OffsetDateTime retryTimestamp)voidsetId(UUID id)voidsetInvocationTimestamp(OffsetDateTime invocationTimestamp)voidsetItems(List<EventMessage> items)voidsetRetryCount(Integer retryCount)voidsetRetryMax(Integer retryMax)voidsetRetryTimestamp(OffsetDateTime retryTimestamp)StringtoJson()Convert an instance of WebhookInvocation 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_RETRY_COUNT
public static final String SERIALIZED_NAME_RETRY_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RETRY_MAX
public static final String SERIALIZED_NAME_RETRY_MAX
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INVOCATION_TIMESTAMP
public static final String SERIALIZED_NAME_INVOCATION_TIMESTAMP
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RETRY_TIMESTAMP
public static final String SERIALIZED_NAME_RETRY_TIMESTAMP
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ITEMS
public static final String SERIALIZED_NAME_ITEMS
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public WebhookInvocation id(UUID id)
-
setId
public void setId(UUID id)
-
retryCount
public WebhookInvocation retryCount(Integer retryCount)
-
getRetryCount
@Nullable public Integer getRetryCount()
The number of invocation attempts.- Returns:
- retryCount
-
setRetryCount
public void setRetryCount(Integer retryCount)
-
retryMax
public WebhookInvocation retryMax(Integer retryMax)
-
getRetryMax
@Nullable public Integer getRetryMax()
The maximum retries that may be attempted in total.- Returns:
- retryMax
-
setRetryMax
public void setRetryMax(Integer retryMax)
-
invocationTimestamp
public WebhookInvocation invocationTimestamp(OffsetDateTime invocationTimestamp)
-
getInvocationTimestamp
@Nonnull public OffsetDateTime getInvocationTimestamp()
Initial timestamp of the first invocation attempt.- Returns:
- invocationTimestamp
-
setInvocationTimestamp
public void setInvocationTimestamp(OffsetDateTime invocationTimestamp)
-
retryTimestamp
public WebhookInvocation retryTimestamp(OffsetDateTime retryTimestamp)
-
getRetryTimestamp
@Nullable public OffsetDateTime getRetryTimestamp()
Timestamp of this invocation attempt.- Returns:
- retryTimestamp
-
setRetryTimestamp
public void setRetryTimestamp(OffsetDateTime retryTimestamp)
-
items
public WebhookInvocation items(List<EventMessage> items)
-
addItemsItem
public WebhookInvocation addItemsItem(EventMessage itemsItem)
-
getItems
@Nonnull public List<EventMessage> getItems()
Array of events being delivered in the webhook- Returns:
- items
-
setItems
public void setItems(List<EventMessage> items)
-
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 WebhookInvocation
-
fromJson
public static WebhookInvocation fromJson(String jsonString) throws IOException
Create an instance of WebhookInvocation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of WebhookInvocation
- Throws:
IOException- if the JSON string is invalid with respect to WebhookInvocation
-
toJson
public String toJson()
Convert an instance of WebhookInvocation to an JSON string- Returns:
- JSON string
-
-