Class DataPlaneAuthOptions
java.lang.Object
com.azure.resourcemanager.search.models.DataPlaneAuthOptions
Defines the options for how the search service authenticates a data plane request. This cannot be set if
'disableLocalAuth' is set to true.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the aadOrApiKey property: Indicates that either the API key or an access token from a Microsoft Entra ID tenant can be used for authentication.Get the apiKeyOnly property: Indicates that only the API key can be used for authentication.voidvalidate()Validates the instance.withAadOrApiKey(DataPlaneAadOrApiKeyAuthOption aadOrApiKey) Set the aadOrApiKey property: Indicates that either the API key or an access token from a Microsoft Entra ID tenant can be used for authentication.withApiKeyOnly(Object apiKeyOnly) Set the apiKeyOnly property: Indicates that only the API key can be used for authentication.
-
Constructor Details
-
DataPlaneAuthOptions
public DataPlaneAuthOptions()Creates an instance of DataPlaneAuthOptions class.
-
-
Method Details
-
apiKeyOnly
Get the apiKeyOnly property: Indicates that only the API key can be used for authentication.- Returns:
- the apiKeyOnly value.
-
withApiKeyOnly
Set the apiKeyOnly property: Indicates that only the API key can be used for authentication.- Parameters:
apiKeyOnly- the apiKeyOnly value to set.- Returns:
- the DataPlaneAuthOptions object itself.
-
aadOrApiKey
Get the aadOrApiKey property: Indicates that either the API key or an access token from a Microsoft Entra ID tenant can be used for authentication.- Returns:
- the aadOrApiKey value.
-
withAadOrApiKey
Set the aadOrApiKey property: Indicates that either the API key or an access token from a Microsoft Entra ID tenant can be used for authentication.- Parameters:
aadOrApiKey- the aadOrApiKey value to set.- Returns:
- the DataPlaneAuthOptions object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-