Class TwoFactorVerifyRequestSchema

java.lang.Object
com.bandwidth.twofactorauth.models.TwoFactorVerifyRequestSchema

public class TwoFactorVerifyRequestSchema
extends java.lang.Object
This is a model class for TwoFactorVerifyRequestSchema type.
  • Constructor Details

    • TwoFactorVerifyRequestSchema

      public TwoFactorVerifyRequestSchema()
      Default constructor.
    • TwoFactorVerifyRequestSchema

      public TwoFactorVerifyRequestSchema​(java.lang.String to, java.lang.String applicationId, double expirationTimeInMinutes, java.lang.String code, java.lang.String scope)
      Initialization constructor.
      Parameters:
      to - String value for to.
      applicationId - String value for applicationId.
      expirationTimeInMinutes - double value for expirationTimeInMinutes.
      code - String value for code.
      scope - String value for scope.
  • Method Details

    • getTo

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

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

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

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

      public java.lang.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​(java.lang.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
    • getExpirationTimeInMinutes

      public double getExpirationTimeInMinutes()
      Getter for ExpirationTimeInMinutes. The time period, in minutes, to validate the 2fa code. By setting this to 3 minutes, it will mean any code generated within the last 3 minutes are still valid. The valid range for expiration time is between 0 and 15 minutes, exclusively and inclusively, respectively.
      Returns:
      Returns the double
    • setExpirationTimeInMinutes

      public void setExpirationTimeInMinutes​(double expirationTimeInMinutes)
      Setter for ExpirationTimeInMinutes. The time period, in minutes, to validate the 2fa code. By setting this to 3 minutes, it will mean any code generated within the last 3 minutes are still valid. The valid range for expiration time is between 0 and 15 minutes, exclusively and inclusively, respectively.
      Parameters:
      expirationTimeInMinutes - Value for double
    • getCode

      public java.lang.String getCode()
      Getter for Code. The generated 2fa code to check if valid
      Returns:
      Returns the String
    • setCode

      public void setCode​(java.lang.String code)
      Setter for Code. The generated 2fa code to check if valid
      Parameters:
      code - Value for String
    • toString

      public java.lang.String toString()
      Converts this TwoFactorVerifyRequestSchema into string format.
      Overrides:
      toString in class java.lang.Object
      Returns:
      String representation of this class
    • toBuilder

      Builds a new TwoFactorVerifyRequestSchema.Builder object. Creates the instance with the state of the current model.
      Returns:
      a new TwoFactorVerifyRequestSchema.Builder object