Class DataPlaneAadOrApiKeyAuthOption

java.lang.Object
com.azure.resourcemanager.search.models.DataPlaneAadOrApiKeyAuthOption

public final class DataPlaneAadOrApiKeyAuthOption extends Object
Indicates that either the API key or an access token from a Microsoft Entra ID tenant can be used for authentication.
  • Constructor Details

    • DataPlaneAadOrApiKeyAuthOption

      public DataPlaneAadOrApiKeyAuthOption()
      Creates an instance of DataPlaneAadOrApiKeyAuthOption class.
  • Method Details

    • aadAuthFailureMode

      public AadAuthFailureMode 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

      public DataPlaneAadOrApiKeyAuthOption 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.
      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.