Class DataPlaneAadOrApiKeyAuthOption
java.lang.Object
com.azure.resourcemanager.search.models.DataPlaneAadOrApiKeyAuthOption
Indicates that either the API key or an access token from a Microsoft Entra ID tenant can be used for authentication.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DataPlaneAadOrApiKeyAuthOption class. -
Method Summary
Modifier and TypeMethodDescriptionGet the aadAuthFailureMode property: Describes what response the data plane API of a search service would send for requests that failed authentication.voidvalidate()Validates the instance.withAadAuthFailureMode(AadAuthFailureMode aadAuthFailureMode) Set the aadAuthFailureMode property: Describes what response the data plane API of a search service would send for requests that failed authentication.
-
Constructor Details
-
DataPlaneAadOrApiKeyAuthOption
public DataPlaneAadOrApiKeyAuthOption()Creates an instance of DataPlaneAadOrApiKeyAuthOption class.
-
-
Method Details
-
aadAuthFailureMode
Get the aadAuthFailureMode property: Describes what response the data plane API of a search service would send for requests that failed authentication.- Returns:
- the aadAuthFailureMode value.
-
withAadAuthFailureMode
Set the aadAuthFailureMode property: Describes what response the data plane API of a search service would send for requests that failed authentication.- Parameters:
aadAuthFailureMode- the aadAuthFailureMode value to set.- Returns:
- the DataPlaneAadOrApiKeyAuthOption object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-