Class TwoFactorCodeRequestSchema


  • public class TwoFactorCodeRequestSchema
    extends Object
    This is a model class for TwoFactorCodeRequestSchema type.
    • Constructor Detail

      • TwoFactorCodeRequestSchema

        public TwoFactorCodeRequestSchema()
        Default constructor.
      • TwoFactorCodeRequestSchema

        public TwoFactorCodeRequestSchema​(String to,
                                          String from,
                                          String applicationId,
                                          String message,
                                          double digits,
                                          String scope)
        Initialization constructor.
        Parameters:
        to - String value for to.
        from - String value for from.
        applicationId - String value for applicationId.
        message - String value for message.
        digits - double value for digits.
        scope - String value for scope.
    • Method Detail

      • getTo

        public String getTo()
        Getter for To. The phone number to send the 2fa code to.
        Returns:
        Returns the String
      • setTo

        public void setTo​(String to)
        Setter for To. The phone number to send the 2fa code to.
        Parameters:
        to - Value for String
      • getFrom

        public String getFrom()
        Getter for From. The application phone number, the sender of the 2fa code.
        Returns:
        Returns the String
      • setFrom

        public void setFrom​(String from)
        Setter for From. The application phone number, the sender of the 2fa code.
        Parameters:
        from - Value for String
      • getApplicationId

        public String getApplicationId()
        Getter for ApplicationId. The application unique ID, obtained from Bandwidth.
        Returns:
        Returns the String
      • setApplicationId

        public void setApplicationId​(String applicationId)
        Setter for ApplicationId. The application unique ID, obtained from Bandwidth.
        Parameters:
        applicationId - Value for String
      • getScope

        public String getScope()
        Getter for Scope. An optional field to denote what scope or action the 2fa code is addressing. If not supplied, defaults to "2FA".
        Returns:
        Returns the String
      • setScope

        public void setScope​(String scope)
        Setter for Scope. An optional field to denote what scope or action the 2fa code is addressing. If not supplied, defaults to "2FA".
        Parameters:
        scope - Value for String
      • getMessage

        public String getMessage()
        Getter for Message. The message format of the 2fa code. There are three values that the system will replace "{CODE}", "{NAME}", "{SCOPE}". The "{SCOPE}" and "{NAME} value template are optional, while "{CODE}" must be supplied. As the name would suggest, code will be replace with the actual 2fa code. Name is replaced with the application name, configured during provisioning of 2fa. The scope value is the same value sent during the call and partitioned by the server.
        Returns:
        Returns the String
      • setMessage

        public void setMessage​(String message)
        Setter for Message. The message format of the 2fa code. There are three values that the system will replace "{CODE}", "{NAME}", "{SCOPE}". The "{SCOPE}" and "{NAME} value template are optional, while "{CODE}" must be supplied. As the name would suggest, code will be replace with the actual 2fa code. Name is replaced with the application name, configured during provisioning of 2fa. The scope value is the same value sent during the call and partitioned by the server.
        Parameters:
        message - Value for String
      • getDigits

        public double getDigits()
        Getter for Digits. The number of digits for your 2fa code. The valid number ranges from 2 to 8, inclusively.
        Returns:
        Returns the double
      • setDigits

        public void setDigits​(double digits)
        Setter for Digits. The number of digits for your 2fa code. The valid number ranges from 2 to 8, inclusively.
        Parameters:
        digits - Value for double
      • toString

        public String toString()
        Converts this TwoFactorCodeRequestSchema into string format.
        Overrides:
        toString in class Object
        Returns:
        String representation of this class