Class SettingsRequest

    • Constructor Detail

      • SettingsRequest

        public SettingsRequest​(java.lang.String incomingSmsUrl,
                               java.lang.String deliveryReceiptUrl)
        Parameters:
        incomingSmsUrl - The URL where Nexmo will send a webhook when an incoming SMS is received when a number-specific URL is not configured. Set to an empty string to unset the value.
        deliveryReceiptUrl - The URL where Nexmo will send a webhook when an incoming SMS is received when a number-specific URL is not configured. Set to an empty string to unset the value.
    • Method Detail

      • withIncomingSmsUrl

        public static SettingsRequest withIncomingSmsUrl​(java.lang.String incomingSmsUrl)
        Parameters:
        incomingSmsUrl - The URL where Nexmo will send a webhook when an incoming SMS is received when a number-specific URL is not configured. Set to an empty string to unset the value.
        Returns:
        An SettingsRequest with only the incoming SMS URL set.
      • withDeliveryReceiptUrl

        public static SettingsRequest withDeliveryReceiptUrl​(java.lang.String deliveryReceiptUrl)
        Parameters:
        deliveryReceiptUrl - The URL where Nexmo will send a webhook when an incoming SMS is received when a number-specific URL is not configured. Set to an empty string to unset the value.
        Returns:
        An SettingsRequest with only the delivery receipt URL set.
      • getIncomingSmsUrl

        public java.lang.String getIncomingSmsUrl()
        Returns:
        The URL where Nexmo will send a webhook when an incoming SMS is received when a number-specific URL is not configured.
      • getDeliveryReceiptUrl

        public java.lang.String getDeliveryReceiptUrl()
        Returns:
        The URL where Nexmo will send a webhook when a delivery receipt is received when a number-specific URL is not configured.