Class GovernanceRuleProperties
java.lang.Object
com.azure.resourcemanager.security.fluent.models.GovernanceRuleProperties
Describes properties of an governanceRule.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the conditionSets property: The governance rule conditionSets - see examples.Get the description property: description of the governanceRule.Get the displayName property: display name of the governanceRule.Get the governanceEmailNotification property: The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners.Get the isDisabled property: Defines whether the rule is active/inactive.Get the isGracePeriod property: Defines whether there is a grace period on the governance rule.Get the ownerSource property: The Owner source for the governance rule - e.g.Get the remediationTimeframe property: Governance rule remediation timeframe - this is the time that will affect on the grace-period duration e.g.int
Get the rulePriority property: The governance rule priority, priority to the lower number.ruleType()
Get the ruleType property: The rule type of the governance rule, defines the source of the rule e.g.Get the sourceResourceType property: The governance rule source, what the rule affects, e.g.void
validate()
Validates the instance.withConditionSets
(List<Object> conditionSets) Set the conditionSets property: The governance rule conditionSets - see examples.withDescription
(String description) Set the description property: description of the governanceRule.withDisplayName
(String displayName) Set the displayName property: display name of the governanceRule.withGovernanceEmailNotification
(GovernanceRuleEmailNotification governanceEmailNotification) Set the governanceEmailNotification property: The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners.withIsDisabled
(Boolean isDisabled) Set the isDisabled property: Defines whether the rule is active/inactive.withIsGracePeriod
(Boolean isGracePeriod) Set the isGracePeriod property: Defines whether there is a grace period on the governance rule.withOwnerSource
(GovernanceRuleOwnerSource ownerSource) Set the ownerSource property: The Owner source for the governance rule - e.g.withRemediationTimeframe
(String remediationTimeframe) Set the remediationTimeframe property: Governance rule remediation timeframe - this is the time that will affect on the grace-period duration e.g.withRulePriority
(int rulePriority) Set the rulePriority property: The governance rule priority, priority to the lower number.withRuleType
(GovernanceRuleType ruleType) Set the ruleType property: The rule type of the governance rule, defines the source of the rule e.g.withSourceResourceType
(GovernanceRuleSourceResourceType sourceResourceType) Set the sourceResourceType property: The governance rule source, what the rule affects, e.g.
-
Constructor Details
-
GovernanceRuleProperties
public GovernanceRuleProperties()
-
-
Method Details
-
displayName
Get the displayName property: display name of the governanceRule.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: display name of the governanceRule.- Parameters:
displayName
- the displayName value to set.- Returns:
- the GovernanceRuleProperties object itself.
-
description
Get the description property: description of the governanceRule.- Returns:
- the description value.
-
withDescription
Set the description property: description of the governanceRule.- Parameters:
description
- the description value to set.- Returns:
- the GovernanceRuleProperties object itself.
-
remediationTimeframe
Get the remediationTimeframe property: Governance rule remediation timeframe - this is the time that will affect on the grace-period duration e.g. 7.00:00:00 - means 7 days.- Returns:
- the remediationTimeframe value.
-
withRemediationTimeframe
Set the remediationTimeframe property: Governance rule remediation timeframe - this is the time that will affect on the grace-period duration e.g. 7.00:00:00 - means 7 days.- Parameters:
remediationTimeframe
- the remediationTimeframe value to set.- Returns:
- the GovernanceRuleProperties object itself.
-
isGracePeriod
Get the isGracePeriod property: Defines whether there is a grace period on the governance rule.- Returns:
- the isGracePeriod value.
-
withIsGracePeriod
Set the isGracePeriod property: Defines whether there is a grace period on the governance rule.- Parameters:
isGracePeriod
- the isGracePeriod value to set.- Returns:
- the GovernanceRuleProperties object itself.
-
rulePriority
public int rulePriority()Get the rulePriority property: The governance rule priority, priority to the lower number. Rules with the same priority on the same subscription will not be allowed.- Returns:
- the rulePriority value.
-
withRulePriority
Set the rulePriority property: The governance rule priority, priority to the lower number. Rules with the same priority on the same subscription will not be allowed.- Parameters:
rulePriority
- the rulePriority value to set.- Returns:
- the GovernanceRuleProperties object itself.
-
isDisabled
Get the isDisabled property: Defines whether the rule is active/inactive.- Returns:
- the isDisabled value.
-
withIsDisabled
Set the isDisabled property: Defines whether the rule is active/inactive.- Parameters:
isDisabled
- the isDisabled value to set.- Returns:
- the GovernanceRuleProperties object itself.
-
ruleType
Get the ruleType property: The rule type of the governance rule, defines the source of the rule e.g. Integrated.- Returns:
- the ruleType value.
-
withRuleType
Set the ruleType property: The rule type of the governance rule, defines the source of the rule e.g. Integrated.- Parameters:
ruleType
- the ruleType value to set.- Returns:
- the GovernanceRuleProperties object itself.
-
sourceResourceType
Get the sourceResourceType property: The governance rule source, what the rule affects, e.g. Assessments.- Returns:
- the sourceResourceType value.
-
withSourceResourceType
public GovernanceRuleProperties withSourceResourceType(GovernanceRuleSourceResourceType sourceResourceType) Set the sourceResourceType property: The governance rule source, what the rule affects, e.g. Assessments.- Parameters:
sourceResourceType
- the sourceResourceType value to set.- Returns:
- the GovernanceRuleProperties object itself.
-
conditionSets
Get the conditionSets property: The governance rule conditionSets - see examples.- Returns:
- the conditionSets value.
-
withConditionSets
Set the conditionSets property: The governance rule conditionSets - see examples.- Parameters:
conditionSets
- the conditionSets value to set.- Returns:
- the GovernanceRuleProperties object itself.
-
ownerSource
Get the ownerSource property: The Owner source for the governance rule - e.g. Manually by user@contoso.com - see example.- Returns:
- the ownerSource value.
-
withOwnerSource
Set the ownerSource property: The Owner source for the governance rule - e.g. Manually by user@contoso.com - see example.- Parameters:
ownerSource
- the ownerSource value to set.- Returns:
- the GovernanceRuleProperties object itself.
-
governanceEmailNotification
Get the governanceEmailNotification property: The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners.- Returns:
- the governanceEmailNotification value.
-
withGovernanceEmailNotification
public GovernanceRuleProperties withGovernanceEmailNotification(GovernanceRuleEmailNotification governanceEmailNotification) Set the governanceEmailNotification property: The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners.- Parameters:
governanceEmailNotification
- the governanceEmailNotification value to set.- Returns:
- the GovernanceRuleProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-