Package com.bandwidth.sdk.model
Class CodeRequest
java.lang.Object
com.bandwidth.sdk.model.CodeRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.6.0")
public class CodeRequest
extends Object
CodeRequest
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) boolean
static CodeRequest
Create an instance of CodeRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The application unique ID, obtained from Bandwidth.The number of digits for your mfa code.getFrom()
The application phone number, the sender of the mfa code.The message format of 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
setApplicationId
(String applicationId) void
void
void
setMessage
(String message) void
void
toJson()
Convert an instance of CodeRequest 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_FROM
- See Also:
-
SERIALIZED_NAME_APPLICATION_ID
- See Also:
-
SERIALIZED_NAME_SCOPE
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_DIGITS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CodeRequest
public CodeRequest()
-
-
Method Details
-
to
-
getTo
The phone number to send the mfa code to.- Returns:
- to
-
setTo
-
from
-
getFrom
The application phone number, the sender of the mfa code.- Returns:
- from
-
setFrom
-
applicationId
-
getApplicationId
The application unique ID, obtained from Bandwidth.- Returns:
- applicationId
-
setApplicationId
-
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
-
message
-
getMessage
The message format of the mfa 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 mfa code. Name is replaced with the application name, configured during provisioning of mfa. The scope value is the same value sent during the call and partitioned by the server.- Returns:
- message
-
setMessage
-
digits
-
getDigits
The number of digits for your mfa code. The valid number ranges from 2 to 8, inclusively. minimum: 4 maximum: 8- Returns:
- digits
-
setDigits
-
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 CodeRequest 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 CodeRequest
-
fromJson
Create an instance of CodeRequest given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of CodeRequest
- Throws:
IOException
- if the JSON string is invalid with respect to CodeRequest
-
toJson
Convert an instance of CodeRequest to an JSON string- Returns:
- JSON string
-