Class AccessPolicyResourceInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.timeseriesinsights.fluent.models.AccessPolicyResourceInner
public final class AccessPolicyResourceInner
extends com.azure.core.management.ProxyResource
An access policy is used to grant users and applications access to the environment. Roles are assigned to service
principals in Azure Active Directory. These roles define the actions the principal can perform through the Time
Series Insights data plane APIs.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AccessPolicyResourceInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: An description of the access policy.Get the principalObjectId property: The objectId of the principal in Azure Active Directory.roles()
Get the roles property: The list of roles the principal is assigned on the environment.void
validate()
Validates the instance.withDescription
(String description) Set the description property: An description of the access policy.withPrincipalObjectId
(String principalObjectId) Set the principalObjectId property: The objectId of the principal in Azure Active Directory.withRoles
(List<AccessPolicyRole> roles) Set the roles property: The list of roles the principal is assigned on the environment.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
AccessPolicyResourceInner
public AccessPolicyResourceInner()Creates an instance of AccessPolicyResourceInner class.
-
-
Method Details
-
principalObjectId
Get the principalObjectId property: The objectId of the principal in Azure Active Directory.- Returns:
- the principalObjectId value.
-
withPrincipalObjectId
Set the principalObjectId property: The objectId of the principal in Azure Active Directory.- Parameters:
principalObjectId
- the principalObjectId value to set.- Returns:
- the AccessPolicyResourceInner object itself.
-
description
Get the description property: An description of the access policy.- Returns:
- the description value.
-
withDescription
Set the description property: An description of the access policy.- Parameters:
description
- the description value to set.- Returns:
- the AccessPolicyResourceInner object itself.
-
roles
Get the roles property: The list of roles the principal is assigned on the environment.- Returns:
- the roles value.
-
withRoles
Set the roles property: The list of roles the principal is assigned on the environment.- Parameters:
roles
- the roles value to set.- Returns:
- the AccessPolicyResourceInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-