public class ParamConstraint extends AbstractModel
Constructor and Description |
---|
ParamConstraint() |
ParamConstraint(ParamConstraint source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
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 ParamConstraint()
public ParamConstraint(ParamConstraint source)
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 © 2023. All rights reserved.