Class AccessPolicyMutableProperties
java.lang.Object
com.azure.resourcemanager.timeseriesinsights.fluent.models.AccessPolicyMutableProperties
An object that represents a set of mutable access policy resource properties.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AccessPolicyMutableProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: An description of the access policy.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.withRoles
(List<AccessPolicyRole> roles) Set the roles property: The list of roles the principal is assigned on the environment.
-
Constructor Details
-
AccessPolicyMutableProperties
public AccessPolicyMutableProperties()Creates an instance of AccessPolicyMutableProperties class.
-
-
Method Details
-
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 AccessPolicyMutableProperties 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 AccessPolicyMutableProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-