你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
KeyValuePair Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. contentmoderator. models. KeyValuePair
- com.
public class KeyValuePair
The key value pair object properties.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
key()
Get the key value. |
String |
value()
Get the value value. |
Key |
withKey(String key)
Set the key value. |
Key |
withValue(String value)
Set the value value. |
Method Details
key
public String key()
Get the key value.
Returns:
the key value
value
public String value()
Get the value value.
Returns:
the value value
withKey
public KeyValuePair withKey(String key)
Set the key value.
Parameters:
key
- the key value to set
Returns:
the KeyValuePair object itself.
withValue
public KeyValuePair withValue(String value)
Set the value value.
Parameters:
value
- the value value to set
Returns:
the KeyValuePair object itself.