Package com.bandwidth.sdk.model
Class VerifyCodeRequest
java.lang.Object
com.bandwidth.sdk.model.VerifyCodeRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.6.0")
public class VerifyCodeRequest
extends Object
VerifyCodeRequest
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
expirationTimeInMinutes
(BigDecimal expirationTimeInMinutes) static VerifyCodeRequest
Create an instance of VerifyCodeRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getCode()
The generated mfa code to check if valid.The time period, in minutes, to validate the mfa code.getScope()
An optional field to denote what scope or action the mfa code is addressing.getTo()
The phone number to send the mfa code to.int
hashCode()
putAdditionalProperty
(String key, Object value) Set the additional (undeclared) property with the specified name and value.void
void
setExpirationTimeInMinutes
(BigDecimal expirationTimeInMinutes) void
void
toJson()
Convert an instance of VerifyCodeRequest to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_TO
- See Also:
-
SERIALIZED_NAME_SCOPE
- See Also:
-
SERIALIZED_NAME_EXPIRATION_TIME_IN_MINUTES
- See Also:
-
SERIALIZED_NAME_CODE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
VerifyCodeRequest
public VerifyCodeRequest()
-
-
Method Details
-
to
-
getTo
The phone number to send the mfa code to.- Returns:
- to
-
setTo
-
scope
-
getScope
An optional field to denote what scope or action the mfa code is addressing. If not supplied, defaults to \"2FA\".- Returns:
- scope
-
setScope
-
expirationTimeInMinutes
-
getExpirationTimeInMinutes
The time period, in minutes, to validate the mfa 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. minimum: 1 maximum: 15- Returns:
- expirationTimeInMinutes
-
setExpirationTimeInMinutes
-
code
-
getCode
The generated mfa code to check if valid.- Returns:
- code
-
setCode
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key
- name of the propertyvalue
- value of the property- Returns:
- the VerifyCodeRequest instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key
- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to VerifyCodeRequest
-
fromJson
Create an instance of VerifyCodeRequest given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of VerifyCodeRequest
- Throws:
IOException
- if the JSON string is invalid with respect to VerifyCodeRequest
-
toJson
Convert an instance of VerifyCodeRequest to an JSON string- Returns:
- JSON string
-