Class ApiKeyAuthentication
java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.RestRequestAuthentication
com.azure.resourcemanager.deploymentmanager.models.ApiKeyAuthentication
ApiKey authentication gives a name and a value that can be included in either the request header or query parameters.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionin()
Get the in property: The location of the authentication key/value pair in the request.name()
Get the name property: The key name of the authentication key/value pair.void
validate()
Validates the instance.value()
Get the value property: The value of the authentication key/value pair.Set the in property: The location of the authentication key/value pair in the request.Set the name property: The key name of the authentication key/value pair.Set the value property: The value of the authentication key/value pair.
-
Constructor Details
-
ApiKeyAuthentication
public ApiKeyAuthentication()Creates an instance of ApiKeyAuthentication class.
-
-
Method Details
-
name
Get the name property: The key name of the authentication key/value pair.- Returns:
- the name value.
-
withName
Set the name property: The key name of the authentication key/value pair.- Parameters:
name
- the name value to set.- Returns:
- the ApiKeyAuthentication object itself.
-
in
Get the in property: The location of the authentication key/value pair in the request.- Returns:
- the in value.
-
withIn
Set the in property: The location of the authentication key/value pair in the request.- Parameters:
in
- the in value to set.- Returns:
- the ApiKeyAuthentication object itself.
-
value
Get the value property: The value of the authentication key/value pair.- Returns:
- the value value.
-
withValue
Set the value property: The value of the authentication key/value pair.- Parameters:
value
- the value value to set.- Returns:
- the ApiKeyAuthentication object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classRestRequestAuthentication
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-