NameValuePair Class

  • java.lang.Object
    • com.microsoft.azure.management.batchai.NameValuePair

public class NameValuePair

Name-value pair.

Method Summary

Modifier and Type Method and Description
String name()

Get the name in the name-value pair.

String value()

Get the value in the name-value pair.

NameValuePair withName(String name)

Set the name in the name-value pair.

NameValuePair withValue(String value)

Set the value in the name-value pair.

Method Details

name

public String name()

Get the name in the name-value pair.

Returns:

the name value

value

public String value()

Get the value in the name-value pair.

Returns:

the value value

withName

public NameValuePair withName(String name)

Set the name in the name-value pair.

Parameters:

name - the name value to set

Returns:

the NameValuePair object itself.

withValue

public NameValuePair withValue(String value)

Set the value in the name-value pair.

Parameters:

value - the value value to set

Returns:

the NameValuePair object itself.

Applies to