Interface NumberEvent
public interface NumberEvent
NumberEvent
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Dedicated Builderstatic class
The type of the event.static class
If the status is FAILED, a failure code will be provided.static class
The status of the event. -
Method Summary
Modifier and TypeMethodDescriptionstatic NumberEvent.Builder
builder()
Getting builderThe ID of the event.The type of the event.If the status is FAILED, a failure code will be provided.The ID of the project to which the event belongs.The unique identifier of the resource, depending on the resource type.Get resourceTypeThe status of the event.The date and time when the callback was created and added to the callbacks queue.
-
Method Details
-
getEventId
String getEventId()The ID of the event.- Returns:
- eventId
-
getTimestamp
Instant getTimestamp()The date and time when the callback was created and added to the callbacks queue.- Returns:
- timestamp
-
getProjectId
String getProjectId()The ID of the project to which the event belongs.- Returns:
- projectId
-
getResourceId
String getResourceId()The unique identifier of the resource, depending on the resource type. For example, a phone number, a hosting order ID, or a brand ID.- Returns:
- resourceId
-
getResourceType
ResourceType getResourceType()Get resourceType- Returns:
- resourceType
-
getEventType
NumberEvent.EventTypeEnum getEventType()The type of the event.- Returns:
- eventType
-
getStatus
NumberEvent.StatusEnum getStatus()The status of the event. For example,SUCCEEDED
orFAILED
.- Returns:
- status
-
getFailureCode
NumberEvent.FailureCodeEnum getFailureCode()If the status is FAILED, a failure code will be provided. For numbers provisioning to SMS platform, there won't be any extrafailureCode
, as the result is binary. For campaign provisioning-related failures, refer to the list for the possible values.- Returns:
- failureCode
-
builder
Getting builder- Returns:
- New Builder instance
-