DataPlaneAadOrApiKeyAuthOption Class
- java.
lang. Object - com.
azure. resourcemanager. search. models. DataPlaneAadOrApiKeyAuthOption
- com.
Implements
public final class DataPlaneAadOrApiKeyAuthOption
implements JsonSerializable<DataPlaneAadOrApiKeyAuthOption>
Indicates that either the API key or an access token from a Microsoft Entra ID tenant can be used for authentication.
Constructor Summary
Constructor | Description |
---|---|
DataPlaneAadOrApiKeyAuthOption() |
Creates an instance of Data |
Method Summary
Modifier and Type | Method and Description |
---|---|
Aad |
aadAuthFailureMode()
Get the aad |
static
Data |
fromJson(JsonReader jsonReader)
Reads an instance of Data |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Data |
withAadAuthFailureMode(AadAuthFailureMode aadAuthFailureMode)
Set the aad |
Methods inherited from java.lang.Object
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:
fromJson
public static DataPlaneAadOrApiKeyAuthOption fromJson(JsonReader jsonReader)
Reads an instance of DataPlaneAadOrApiKeyAuthOption from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
Applies to
Azure SDK for Java