Class GlobalValidation
java.lang.Object
com.azure.resourcemanager.appcontainers.models.GlobalValidation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GlobalValidation>
public final class GlobalValidation
extends Object
implements com.azure.json.JsonSerializable<GlobalValidation>
The configuration settings that determines the validation flow of users using ContainerApp Service
Authentication/Authorization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login page.static GlobalValidation
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of GlobalValidation from the JsonReader.Get the redirectToProvider property: The default authentication provider to use when multiple providers are configured.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to access the app.void
validate()
Validates the instance.withExcludedPaths
(List<String> excludedPaths) Set the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login page.withRedirectToProvider
(String redirectToProvider) Set the redirectToProvider property: The default authentication provider to use when multiple providers are configured.withUnauthenticatedClientAction
(UnauthenticatedClientActionV2 unauthenticatedClientAction) Set the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to access the app.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GlobalValidation
public GlobalValidation()Creates an instance of GlobalValidation class.
-
-
Method Details
-
unauthenticatedClientAction
Get the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to access the app.- Returns:
- the unauthenticatedClientAction value.
-
withUnauthenticatedClientAction
public GlobalValidation withUnauthenticatedClientAction(UnauthenticatedClientActionV2 unauthenticatedClientAction) Set the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to access the app.- Parameters:
unauthenticatedClientAction
- the unauthenticatedClientAction value to set.- Returns:
- the GlobalValidation object itself.
-
redirectToProvider
Get the redirectToProvider property: The default authentication provider to use when multiple providers are configured. This setting is only needed if multiple providers are configured and the unauthenticated client action is set to "RedirectToLoginPage".- Returns:
- the redirectToProvider value.
-
withRedirectToProvider
Set the redirectToProvider property: The default authentication provider to use when multiple providers are configured. This setting is only needed if multiple providers are configured and the unauthenticated client action is set to "RedirectToLoginPage".- Parameters:
redirectToProvider
- the redirectToProvider value to set.- Returns:
- the GlobalValidation object itself.
-
excludedPaths
Get the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login page.- Returns:
- the excludedPaths value.
-
withExcludedPaths
Set the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login page.- Parameters:
excludedPaths
- the excludedPaths value to set.- Returns:
- the GlobalValidation object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<GlobalValidation>
- Throws:
IOException
-
fromJson
Reads an instance of GlobalValidation from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of GlobalValidation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the GlobalValidation.
-