Class TokenBodyParameterContract
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.TokenBodyParameterContract
-
public final class TokenBodyParameterContract extends Object
OAuth acquire token request body parameter (www-url-form-encoded).
-
-
Constructor Summary
Constructors Constructor Description TokenBodyParameterContract()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
name
public String name()
Get the name property: body parameter name.- Returns:
- the name 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.
-
value
public String value()
Get the value property: body parameter value.- Returns:
- the value value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-