Package com.boldsign.model
Class Validation
- java.lang.Object
-
- com.boldsign.model.Validation
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.8.0") public class Validation extends Object
Validation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidation.CustomTypeAdapterFactorystatic classValidation.TypeEnumGets or Sets type
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_REGEXstatic StringSERIALIZED_NAME_REGEX_MESSAGEstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description Validation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>createFormData()booleanequals(Object o)static ValidationfromJson(String jsonString)Create an instance of Validation given an JSON stringStringgetRegex()Get regexStringgetRegexMessage()Get regexMessageValidation.TypeEnumgetType()Get typeinthashCode()Validationregex(String regex)ValidationregexMessage(String regexMessage)voidsetRegex(String regex)voidsetRegexMessage(String regexMessage)voidsetType(Validation.TypeEnum type)StringtoJson()Convert an instance of Validation to an JSON stringStringtoString()Validationtype(Validation.TypeEnum type)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REGEX
public static final String SERIALIZED_NAME_REGEX
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REGEX_MESSAGE
public static final String SERIALIZED_NAME_REGEX_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public Validation type(Validation.TypeEnum type)
-
getType
@Nonnull public Validation.TypeEnum getType()
Get type- Returns:
- type
-
setType
public void setType(Validation.TypeEnum type)
-
regex
public Validation regex(String regex)
-
setRegex
public void setRegex(String regex)
-
regexMessage
public Validation regexMessage(String regexMessage)
-
setRegexMessage
public void setRegexMessage(String regexMessage)
-
createFormData
public Map<String,Object> createFormData() throws ApiException
- Throws:
ApiException
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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 Validation
-
fromJson
public static Validation fromJson(String jsonString) throws IOException
Create an instance of Validation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Validation
- Throws:
IOException- if the JSON string is invalid with respect to Validation
-
toJson
public String toJson()
Convert an instance of Validation to an JSON string- Returns:
- JSON string
-
-