Class AccessPolicyProperties
- java.lang.Object
-
- com.azure.resourcemanager.videoanalyzer.fluent.models.AccessPolicyProperties
-
public final class AccessPolicyProperties extends Object
Application level properties for the access policy resource.
-
-
Constructor Summary
Constructors Constructor Description AccessPolicyProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationBase
authentication()
Get the authentication property: Authentication method to be used when validating client API access.AccessPolicyRole
role()
Get the role property: Defines the access level granted by this policy.void
validate()
Validates the instance.AccessPolicyProperties
withAuthentication(AuthenticationBase authentication)
Set the authentication property: Authentication method to be used when validating client API access.AccessPolicyProperties
withRole(AccessPolicyRole role)
Set the role property: Defines the access level granted by this policy.
-
-
-
Method Detail
-
role
public AccessPolicyRole role()
Get the role property: Defines the access level granted by this policy.- Returns:
- the role value.
-
withRole
public AccessPolicyProperties withRole(AccessPolicyRole role)
Set the role property: Defines the access level granted by this policy.- Parameters:
role
- the role value to set.- Returns:
- the AccessPolicyProperties object itself.
-
authentication
public AuthenticationBase authentication()
Get the authentication property: Authentication method to be used when validating client API access.- Returns:
- the authentication value.
-
withAuthentication
public AccessPolicyProperties withAuthentication(AuthenticationBase authentication)
Set the authentication property: Authentication method to be used when validating client API access.- Parameters:
authentication
- the authentication value to set.- Returns:
- the AccessPolicyProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-