@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-03-31T14:50:27.165+02:00[Europe/Berlin]") public class ValidationRule extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JSON_PROPERTY_ACTIVE |
static String |
JSON_PROPERTY_MESSAGE |
static String |
JSON_PROPERTY_MESSAGE_KEY |
static String |
JSON_PROPERTY_OPTIONS |
static String |
JSON_PROPERTY_TYPE |
Constructor and Description |
---|
ValidationRule() |
Modifier and Type | Method and Description |
---|---|
ValidationRule |
active(Boolean active) |
boolean |
equals(Object o) |
Boolean |
getActive()
Whether or not this rule is active, meaning it should be applied.
|
String |
getMessage()
The error message displayed when the rule isn't fulfilled.
|
String |
getMessageKey()
The message key for this rule
|
Map<String,String> |
getOptions()
An array defining the custom parameters for this rule.
|
String |
getType()
The type of the rule.
|
int |
hashCode() |
ValidationRule |
message(String message) |
ValidationRule |
messageKey(String messageKey) |
ValidationRule |
options(Map<String,String> options) |
ValidationRule |
putOptionsItem(String key,
String optionsItem) |
void |
setActive(Boolean active) |
void |
setMessage(String message) |
void |
setMessageKey(String messageKey) |
void |
setOptions(Map<String,String> options) |
void |
setType(String type) |
String |
toString() |
ValidationRule |
type(String type) |
public static final String JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_MESSAGE
public static final String JSON_PROPERTY_ACTIVE
public static final String JSON_PROPERTY_MESSAGE_KEY
public static final String JSON_PROPERTY_OPTIONS
public ValidationRule type(String type)
public void setType(String type)
public ValidationRule message(String message)
@Nullable public String getMessage()
public void setMessage(String message)
public ValidationRule active(Boolean active)
@Nullable public Boolean getActive()
public void setActive(Boolean active)
public ValidationRule messageKey(String messageKey)
@Nullable public String getMessageKey()
public void setMessageKey(String messageKey)
public ValidationRule options(Map<String,String> options)
public ValidationRule putOptionsItem(String key, String optionsItem)
@Nullable public Map<String,String> getOptions()
Copyright © 2011–2023 aiticon GmbH. All rights reserved.