Class SmsReceiver


  • public class SmsReceiver
    extends Object
    An SMS receiver.
    • Constructor Detail

      • SmsReceiver

        public SmsReceiver()
    • Method Detail

      • name

        public String name()
        Get the name of the SMS receiver. Names must be unique across all receivers within an action group.
        Returns:
        the name value
      • withName

        public SmsReceiver withName​(String name)
        Set the name of the SMS receiver. Names must be unique across all receivers within an action group.
        Parameters:
        name - the name value to set
        Returns:
        the SmsReceiver object itself.
      • countryCode

        public String countryCode()
        Get the country code of the SMS receiver.
        Returns:
        the countryCode value
      • withCountryCode

        public SmsReceiver withCountryCode​(String countryCode)
        Set the country code of the SMS receiver.
        Parameters:
        countryCode - the countryCode value to set
        Returns:
        the SmsReceiver object itself.
      • phoneNumber

        public String phoneNumber()
        Get the phone number of the SMS receiver.
        Returns:
        the phoneNumber value
      • withPhoneNumber

        public SmsReceiver withPhoneNumber​(String phoneNumber)
        Set the phone number of the SMS receiver.
        Parameters:
        phoneNumber - the phoneNumber value to set
        Returns:
        the SmsReceiver object itself.
      • status

        public ReceiverStatus status()
        Get the status of the receiver. Possible values include: 'NotSpecified', 'Enabled', 'Disabled'.
        Returns:
        the status value