Class GovernanceRuleProperties

java.lang.Object
com.azure.resourcemanager.security.fluent.models.GovernanceRuleProperties

public final class GovernanceRuleProperties extends Object
Describes properties of an governanceRule.
  • Constructor Details

    • GovernanceRuleProperties

      public GovernanceRuleProperties()
  • Method Details

    • displayName

      public String displayName()
      Get the displayName property: display name of the governanceRule.
      Returns:
      the displayName value.
    • withDisplayName

      public GovernanceRuleProperties withDisplayName(String displayName)
      Set the displayName property: display name of the governanceRule.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the GovernanceRuleProperties object itself.
    • description

      public String description()
      Get the description property: description of the governanceRule.
      Returns:
      the description value.
    • withDescription

      public GovernanceRuleProperties withDescription(String description)
      Set the description property: description of the governanceRule.
      Parameters:
      description - the description value to set.
      Returns:
      the GovernanceRuleProperties object itself.
    • remediationTimeframe

      public String 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

      public GovernanceRuleProperties 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. 7.00:00:00 - means 7 days.
      Parameters:
      remediationTimeframe - the remediationTimeframe value to set.
      Returns:
      the GovernanceRuleProperties object itself.
    • isGracePeriod

      public Boolean isGracePeriod()
      Get the isGracePeriod property: Defines whether there is a grace period on the governance rule.
      Returns:
      the isGracePeriod value.
    • withIsGracePeriod

      public GovernanceRuleProperties withIsGracePeriod(Boolean isGracePeriod)
      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

      public GovernanceRuleProperties withRulePriority(int rulePriority)
      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

      public Boolean isDisabled()
      Get the isDisabled property: Defines whether the rule is active/inactive.
      Returns:
      the isDisabled value.
    • withIsDisabled

      public GovernanceRuleProperties withIsDisabled(Boolean isDisabled)
      Set the isDisabled property: Defines whether the rule is active/inactive.
      Parameters:
      isDisabled - the isDisabled value to set.
      Returns:
      the GovernanceRuleProperties object itself.
    • ruleType

      public GovernanceRuleType 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

      public GovernanceRuleProperties withRuleType(GovernanceRuleType ruleType)
      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

      public GovernanceRuleSourceResourceType 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

      public List<Object> conditionSets()
      Get the conditionSets property: The governance rule conditionSets - see examples.
      Returns:
      the conditionSets value.
    • withConditionSets

      public GovernanceRuleProperties withConditionSets(List<Object> conditionSets)
      Set the conditionSets property: The governance rule conditionSets - see examples.
      Parameters:
      conditionSets - the conditionSets value to set.
      Returns:
      the GovernanceRuleProperties object itself.
    • ownerSource

      public GovernanceRuleOwnerSource 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

      public GovernanceRuleProperties withOwnerSource(GovernanceRuleOwnerSource ownerSource)
      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

      public GovernanceRuleEmailNotification 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.