public class ParamConstraint extends AbstractModel
Constructor and Description |
---|
ParamConstraint() |
Modifier and Type | Method and Description |
---|---|
String |
getEnum()
Get List of valid values when constraint type is `enum`
|
ConstraintRange |
getRange()
Get Range when constraint type is `section`
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getString()
Get List of valid values when constraint type is `string`
|
String |
getType()
Get Constraint type, such as `enum` and `section`
|
void |
setEnum(String Enum)
Set List of valid values when constraint type is `enum`
|
void |
setRange(ConstraintRange Range)
Set Range when constraint type is `section`
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setString(String String)
Set List of valid values when constraint type is `string`
|
void |
setType(String Type)
Set Constraint type, such as `enum` and `section`
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public String getType()
public void setType(String Type)
Type
- Constraint type, such as `enum` and `section`public String getEnum()
public void setEnum(String Enum)
Enum
- List of valid values when constraint type is `enum`public ConstraintRange getRange()
public void setRange(ConstraintRange Range)
Range
- Range when constraint type is `section`
Note: this field may return null, indicating that no valid values can be obtained.public String getString()
public void setString(String String)
String
- List of valid values when constraint type is `string`Copyright © 2020. All rights reserved.