Interface NumberEvent


public interface NumberEvent
NumberEvent
  • 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

      The type of the event.
      Returns:
      eventType
    • getStatus

      The status of the event. For example, SUCCEEDED or FAILED.
      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 extra failureCode, as the result is binary. For campaign provisioning-related failures, refer to the list for the possible values.
      Returns:
      failureCode
    • builder

      static NumberEvent.Builder builder()
      Getting builder
      Returns:
      New Builder instance