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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TwoFactorVerifyRequestSchema.Builder
Class to build instances ofTwoFactorVerifyRequestSchema
. -
Constructor Summary
Constructors Constructor Description TwoFactorVerifyRequestSchema()
Default constructor.TwoFactorVerifyRequestSchema(java.lang.String to, java.lang.String applicationId, double expirationTimeInMinutes, java.lang.String code, java.lang.String scope)
Initialization constructor. -
Method Summary
Modifier and Type Method Description java.lang.String
getApplicationId()
Getter for ApplicationId.java.lang.String
getCode()
Getter for Code.double
getExpirationTimeInMinutes()
Getter for ExpirationTimeInMinutes.java.lang.String
getScope()
Getter for Scope.java.lang.String
getTo()
Getter for To.void
setApplicationId(java.lang.String applicationId)
Setter for ApplicationId.void
setCode(java.lang.String code)
Setter for Code.void
setExpirationTimeInMinutes(double expirationTimeInMinutes)
Setter for ExpirationTimeInMinutes.void
setScope(java.lang.String scope)
Setter for Scope.void
setTo(java.lang.String to)
Setter for To.TwoFactorVerifyRequestSchema.Builder
toBuilder()
Builds a newTwoFactorVerifyRequestSchema.Builder
object.java.lang.String
toString()
Converts this TwoFactorVerifyRequestSchema into string format.
-
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 classjava.lang.Object
- Returns:
- String representation of this class
-
toBuilder
Builds a newTwoFactorVerifyRequestSchema.Builder
object. Creates the instance with the state of the current model.- Returns:
- a new
TwoFactorVerifyRequestSchema.Builder
object
-