Class SmtpForwardDestination

java.lang.Object
com.mxraven.admin.Entity<SmtpForwardDestinationData>
com.mxraven.admin.model.SmtpForwardDestination

public final class SmtpForwardDestination extends Entity<SmtpForwardDestinationData>
Hydrated SmtpForwardDestination entity. Reads return a snapshot; call reload() for fresh state.
  • Constructor Details

    • SmtpForwardDestination

      public SmtpForwardDestination(AdminClient client, String path, SmtpForwardDestinationData data)
      Creates a destination bound to the given client, path, and data.
      Parameters:
      client - the admin client
      path - the resource path
      data - the backing data
  • Method Details

    • id

      public String id()
      Returns the entity identifier.
      Returns:
      the entity identifier
    • tenantId

      public String tenantId()
      Returns the identifier of the owning tenant.
      Returns:
      the owning tenant identifier
    • destinationRef

      public String destinationRef()
      Returns the stable reference for the destination.
      Returns:
      the destination reference
    • displayName

      public String displayName()
      Returns the human-readable destination name.
      Returns:
      the destination name
    • emailAddress

      public String emailAddress()
      Returns the destination email address.
      Returns:
      the destination email address
    • verificationStatus

      public SmtpForwardDestinationVerificationStatus verificationStatus()
      Returns the ownership verification status.
      Returns:
      the verification status
    • verificationMethod

      public SmtpForwardDestinationVerificationMethod verificationMethod()
      Returns how ownership is verified.
      Returns:
      the verification method
    • deliveryStatus

      public SmtpForwardVerificationDeliveryStatus deliveryStatus()
      Returns the status of the verification email delivery.
      Returns:
      the delivery status
    • verifiedAt

      public String verifiedAt()
      Returns the timestamp when ownership was verified.
      Returns:
      the verification timestamp
    • deliveryRequestedAt

      public String deliveryRequestedAt()
      Returns the timestamp when verification delivery was requested.
      Returns:
      the delivery request timestamp
    • verificationEmailSentAt

      public String verificationEmailSentAt()
      Returns the timestamp when the verification email was last sent.
      Returns:
      the last verification email timestamp
    • createdAt

      public String createdAt()
      Returns the timestamp when the destination was created.
      Returns:
      the creation timestamp
    • updatedAt

      public String updatedAt()
      Returns the timestamp when the destination was last updated.
      Returns:
      the last-update timestamp
    • reload

      public SmtpForwardDestination reload() throws IOException
      Re-fetches this destination and returns a fresh snapshot.
      Returns:
      a fresh destination snapshot
      Throws:
      IOException - if the request fails
    • sendVerification

      public SmtpForwardDestination sendVerification() throws IOException
      Queues another verification email and returns the updated destination.
      Returns:
      the updated destination
      Throws:
      IOException - if the request fails