public class ReqParameter extends AbstractModel
Constructor and Description |
---|
ReqParameter() |
ReqParameter(ReqParameter 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 |
getDefaultValue()
Get API 的前端参数默认值。
|
String |
getDesc()
Get API 的前端参数备注。
|
String |
getName()
Get API 的前端参数名称。
|
String |
getPosition()
Get API 的前端参数位置,如 header。目前支持 header、query、path。
|
Boolean |
getRequired()
Get API 的前端参数是否必填,True:表示必填,False:表示可选。
|
String |
getType()
Get API 的前端参数类型,如 String、int。
|
void |
setDefaultValue(String DefaultValue)
Set API 的前端参数默认值。
|
void |
setDesc(String Desc)
Set API 的前端参数备注。
|
void |
setName(String Name)
Set API 的前端参数名称。
|
void |
setPosition(String Position)
Set API 的前端参数位置,如 header。目前支持 header、query、path。
|
void |
setRequired(Boolean Required)
Set API 的前端参数是否必填,True:表示必填,False:表示可选。
|
void |
setType(String Type)
Set API 的前端参数类型,如 String、int。
|
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 ReqParameter()
public ReqParameter(ReqParameter source)
public String getName()
public void setName(String Name)
Name
- API 的前端参数名称。public String getPosition()
public void setPosition(String Position)
Position
- API 的前端参数位置,如 header。目前支持 header、query、path。public String getType()
public void setType(String Type)
Type
- API 的前端参数类型,如 String、int。public String getDefaultValue()
public void setDefaultValue(String DefaultValue)
DefaultValue
- API 的前端参数默认值。public Boolean getRequired()
public void setRequired(Boolean Required)
Required
- API 的前端参数是否必填,True:表示必填,False:表示可选。public String getDesc()
public void setDesc(String Desc)
Desc
- API 的前端参数备注。Copyright © 2022. All rights reserved.