Class RoleManagementPolicyExpirationRule
java.lang.Object
com.azure.resourcemanager.authorization.models.RoleManagementPolicyRule
com.azure.resourcemanager.authorization.models.RoleManagementPolicyExpirationRule
The role management policy expiration rule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RoleManagementPolicyExpirationRule class. -
Method Summary
Modifier and TypeMethodDescriptionGet the isExpirationRequired property: The value indicating whether expiration is required.Get the maximumDuration property: The maximum duration of expiration in timespan.voidvalidate()Validates the instance.Set the id property: The id of the rule.withIsExpirationRequired(Boolean isExpirationRequired) Set the isExpirationRequired property: The value indicating whether expiration is required.withMaximumDuration(String maximumDuration) Set the maximumDuration property: The maximum duration of expiration in timespan.Set the target property: The target of the current rule.Methods inherited from class com.azure.resourcemanager.authorization.models.RoleManagementPolicyRule
id, target
-
Constructor Details
-
RoleManagementPolicyExpirationRule
public RoleManagementPolicyExpirationRule()Creates an instance of RoleManagementPolicyExpirationRule class.
-
-
Method Details
-
isExpirationRequired
Get the isExpirationRequired property: The value indicating whether expiration is required.- Returns:
- the isExpirationRequired value.
-
withIsExpirationRequired
Set the isExpirationRequired property: The value indicating whether expiration is required.- Parameters:
isExpirationRequired- the isExpirationRequired value to set.- Returns:
- the RoleManagementPolicyExpirationRule object itself.
-
maximumDuration
Get the maximumDuration property: The maximum duration of expiration in timespan.- Returns:
- the maximumDuration value.
-
withMaximumDuration
Set the maximumDuration property: The maximum duration of expiration in timespan.- Parameters:
maximumDuration- the maximumDuration value to set.- Returns:
- the RoleManagementPolicyExpirationRule object itself.
-
withId
Set the id property: The id of the rule.- Overrides:
withIdin classRoleManagementPolicyRule- Parameters:
id- the id value to set.- Returns:
- the RoleManagementPolicyRule object itself.
-
withTarget
Set the target property: The target of the current rule.- Overrides:
withTargetin classRoleManagementPolicyRule- Parameters:
target- the target value to set.- Returns:
- the RoleManagementPolicyRule object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classRoleManagementPolicyRule- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-