Compartir a través de


KeyValuePair Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair

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.

KeyValuePair withKey(String key)

Set the key value.

KeyValuePair 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.

Applies to