TokenBodyParameterContract Class

  • java.lang.Object
    • com.azure.resourcemanager.apimanagement.models.TokenBodyParameterContract

public final class TokenBodyParameterContract

OAuth acquire token request body parameter (www-url-form-encoded).

Constructor Summary

Constructor Description
TokenBodyParameterContract()

Creates an instance of TokenBodyParameterContract class.

Method Summary

Modifier and Type Method and Description
String name()

Get the name property: body parameter name.

void validate()

Validates the instance.

String value()

Get the value property: body parameter value.

TokenBodyParameterContract withName(String name)

Set the name property: body parameter name.

TokenBodyParameterContract withValue(String value)

Set the value property: body parameter value.

Methods inherited from java.lang.Object

Constructor Details

TokenBodyParameterContract

public TokenBodyParameterContract()

Creates an instance of TokenBodyParameterContract class.

Method Details

name

public String name()

Get the name property: body parameter name.

Returns:

the name value.

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: body parameter value.

Returns:

the value value.

withName

public TokenBodyParameterContract withName(String name)

Set the name property: body parameter name.

Parameters:

name - the name value to set.

Returns:

the TokenBodyParameterContract object itself.

withValue

public TokenBodyParameterContract withValue(String value)

Set the value property: body parameter value.

Parameters:

value - the value value to set.

Returns:

the TokenBodyParameterContract object itself.

Applies to