Class OpenAuthenticationAccessPolicy
java.lang.Object
com.azure.resourcemanager.appservice.models.OpenAuthenticationAccessPolicy
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OpenAuthenticationAccessPolicy>
public final class OpenAuthenticationAccessPolicy
extends Object
implements com.azure.json.JsonSerializable<OpenAuthenticationAccessPolicy>
Open authentication access policy defined by user.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OpenAuthenticationAccessPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionclaims()Get the claims property: The access policy claims.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OpenAuthenticationAccessPolicy from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of provider for OAuth.voidvalidate()Validates the instance.withClaims(List<OpenAuthenticationPolicyClaim> claims) Set the claims property: The access policy claims.Set the type property: Type of provider for OAuth.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OpenAuthenticationAccessPolicy
public OpenAuthenticationAccessPolicy()Creates an instance of OpenAuthenticationAccessPolicy class.
-
-
Method Details
-
type
Get the type property: Type of provider for OAuth.- Returns:
- the type value.
-
withType
Set the type property: Type of provider for OAuth.- Parameters:
type- the type value to set.- Returns:
- the OpenAuthenticationAccessPolicy object itself.
-
claims
Get the claims property: The access policy claims.- Returns:
- the claims value.
-
withClaims
Set the claims property: The access policy claims.- Parameters:
claims- the claims value to set.- Returns:
- the OpenAuthenticationAccessPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OpenAuthenticationAccessPolicy>- Throws:
IOException
-
fromJson
public static OpenAuthenticationAccessPolicy fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OpenAuthenticationAccessPolicy from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OpenAuthenticationAccessPolicy 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 OpenAuthenticationAccessPolicy.
-