Class AccessPolicyCreateOrUpdateParameters
java.lang.Object
com.azure.resourcemanager.timeseriesinsights.models.AccessPolicyCreateOrUpdateParameters
The AccessPolicyCreateOrUpdateParameters model.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AccessPolicyCreateOrUpdateParameters 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.
-
Constructor Details
-
AccessPolicyCreateOrUpdateParameters
public AccessPolicyCreateOrUpdateParameters()Creates an instance of AccessPolicyCreateOrUpdateParameters 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 AccessPolicyCreateOrUpdateParameters 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 AccessPolicyCreateOrUpdateParameters 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 AccessPolicyCreateOrUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-