GovernanceRuleInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. security. fluent. models. GovernanceRuleInner
- com.
- com.
public final class GovernanceRuleInner
extends ProxyResource
Governance rule over a given scope.
Constructor Summary
Constructor | Description |
---|---|
GovernanceRuleInner() |
Creates an instance of Governance |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Object> |
conditionSets()
Get the condition |
String |
description()
Get the description property: Description of the governance rule. |
String |
displayName()
Get the display |
List<String> |
excludedScopes()
Get the excluded |
Governance |
governanceEmailNotification()
Get the governance |
Boolean |
includeMemberScopes()
Get the include |
Boolean |
isDisabled()
Get the is |
Boolean |
isGracePeriod()
Get the is |
Governance |
metadata()
Get the metadata property: The governance rule metadata. |
Governance |
ownerSource()
Get the owner |
String |
remediationTimeframe()
Get the remediation |
Integer |
rulePriority()
Get the rule |
Governance |
ruleType()
Get the rule |
Governance |
sourceResourceType()
Get the source |
String |
tenantId()
Get the tenant |
void |
validate()
Validates the instance. |
Governance |
withConditionSets(List<Object> conditionSets)
Set the condition |
Governance |
withDescription(String description)
Set the description property: Description of the governance rule. |
Governance |
withDisplayName(String displayName)
Set the display |
Governance |
withExcludedScopes(List<String> excludedScopes)
Set the excluded |
Governance |
withGovernanceEmailNotification(GovernanceRuleEmailNotification governanceEmailNotification)
Set the governance |
Governance |
withIncludeMemberScopes(Boolean includeMemberScopes)
Set the include |
Governance |
withIsDisabled(Boolean isDisabled)
Set the is |
Governance |
withIsGracePeriod(Boolean isGracePeriod)
Set the is |
Governance |
withMetadata(GovernanceRuleMetadata metadata)
Set the metadata property: The governance rule metadata. |
Governance |
withOwnerSource(GovernanceRuleOwnerSource ownerSource)
Set the owner |
Governance |
withRemediationTimeframe(String remediationTimeframe)
Set the remediation |
Governance |
withRulePriority(Integer rulePriority)
Set the rule |
Governance |
withRuleType(GovernanceRuleType ruleType)
Set the rule |
Governance |
withSourceResourceType(GovernanceRuleSourceResourceType sourceResourceType)
Set the source |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
GovernanceRuleInner
public GovernanceRuleInner()
Creates an instance of GovernanceRuleInner class.
Method Details
conditionSets
public List
Get the conditionSets property: The governance rule conditionSets - see examples.
Returns:
description
public String description()
Get the description property: Description of the governance rule.
Returns:
displayName
public String displayName()
Get the displayName property: Display name of the governance rule.
Returns:
excludedScopes
public List
Get the excludedScopes property: Excluded scopes, filter out the descendants of the scope (on management scopes).
Returns:
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:
includeMemberScopes
public Boolean includeMemberScopes()
Get the includeMemberScopes property: Defines whether the rule is management scope rule (master connector as a single scope or management scope).
Returns:
isDisabled
public Boolean isDisabled()
Get the isDisabled property: Defines whether the rule is active/inactive.
Returns:
isGracePeriod
public Boolean isGracePeriod()
Get the isGracePeriod property: Defines whether there is a grace period on the governance rule.
Returns:
metadata
public GovernanceRuleMetadata metadata()
Get the metadata property: The governance rule metadata.
Returns:
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:
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:
rulePriority
public Integer rulePriority()
Get the rulePriority property: The governance rule priority, priority to the lower number. Rules with the same priority on the same scope will not be allowed.
Returns:
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:
sourceResourceType
public GovernanceRuleSourceResourceType sourceResourceType()
Get the sourceResourceType property: The governance rule source, what the rule affects, e.g. Assessments.
Returns:
tenantId
public String tenantId()
Get the tenantId property: The tenantId (GUID).
Returns:
validate
public void validate()
Validates the instance.
withConditionSets
public GovernanceRuleInner withConditionSets(List
Set the conditionSets property: The governance rule conditionSets - see examples.
Parameters:
Returns:
withDescription
public GovernanceRuleInner withDescription(String description)
Set the description property: Description of the governance rule.
Parameters:
Returns:
withDisplayName
public GovernanceRuleInner withDisplayName(String displayName)
Set the displayName property: Display name of the governance rule.
Parameters:
Returns:
withExcludedScopes
public GovernanceRuleInner withExcludedScopes(List
Set the excludedScopes property: Excluded scopes, filter out the descendants of the scope (on management scopes).
Parameters:
Returns:
withGovernanceEmailNotification
public GovernanceRuleInner 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:
Returns:
withIncludeMemberScopes
public GovernanceRuleInner withIncludeMemberScopes(Boolean includeMemberScopes)
Set the includeMemberScopes property: Defines whether the rule is management scope rule (master connector as a single scope or management scope).
Parameters:
Returns:
withIsDisabled
public GovernanceRuleInner withIsDisabled(Boolean isDisabled)
Set the isDisabled property: Defines whether the rule is active/inactive.
Parameters:
Returns:
withIsGracePeriod
public GovernanceRuleInner withIsGracePeriod(Boolean isGracePeriod)
Set the isGracePeriod property: Defines whether there is a grace period on the governance rule.
Parameters:
Returns:
withMetadata
public GovernanceRuleInner withMetadata(GovernanceRuleMetadata metadata)
Set the metadata property: The governance rule metadata.
Parameters:
Returns:
withOwnerSource
public GovernanceRuleInner withOwnerSource(GovernanceRuleOwnerSource ownerSource)
Set the ownerSource property: The owner source for the governance rule - e.g. Manually by user@contoso.com - see example.
Parameters:
Returns:
withRemediationTimeframe
public GovernanceRuleInner 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:
Returns:
withRulePriority
public GovernanceRuleInner withRulePriority(Integer rulePriority)
Set the rulePriority property: The governance rule priority, priority to the lower number. Rules with the same priority on the same scope will not be allowed.
Parameters:
Returns:
withRuleType
public GovernanceRuleInner withRuleType(GovernanceRuleType ruleType)
Set the ruleType property: The rule type of the governance rule, defines the source of the rule e.g. Integrated.
Parameters:
Returns:
withSourceResourceType
public GovernanceRuleInner withSourceResourceType(GovernanceRuleSourceResourceType sourceResourceType)
Set the sourceResourceType property: The governance rule source, what the rule affects, e.g. Assessments.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for