GovernanceRuleInner Class

public final class GovernanceRuleInner
extends ProxyResource

Governance rule over a given scope.

Constructor Summary

Constructor Description
GovernanceRuleInner()

Creates an instance of GovernanceRuleInner class.

Method Summary

Modifier and Type Method and Description
List<Object> conditionSets()

Get the conditionSets property: The governance rule conditionSets - see examples.

String description()

Get the description property: Description of the governance rule.

String displayName()

Get the displayName property: Display name of the governance rule.

List<String> excludedScopes()

Get the excludedScopes property: Excluded scopes, filter out the descendants of the scope (on management scopes).

GovernanceRuleEmailNotification governanceEmailNotification()

Get the governanceEmailNotification property: The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners.

Boolean includeMemberScopes()

Get the includeMemberScopes property: Defines whether the rule is management scope rule (master connector as a single scope or management scope).

Boolean isDisabled()

Get the isDisabled property: Defines whether the rule is active/inactive.

Boolean isGracePeriod()

Get the isGracePeriod property: Defines whether there is a grace period on the governance rule.

GovernanceRuleMetadata metadata()

Get the metadata property: The governance rule metadata.

GovernanceRuleOwnerSource ownerSource()

Get the ownerSource property: The owner source for the governance rule - e.g.

String remediationTimeframe()

Get the remediationTimeframe property: Governance rule remediation timeframe - this is the time that will affect on the grace-period duration e.g.

Integer rulePriority()

Get the rulePriority property: The governance rule priority, priority to the lower number.

GovernanceRuleType ruleType()

Get the ruleType property: The rule type of the governance rule, defines the source of the rule e.g.

GovernanceRuleSourceResourceType sourceResourceType()

Get the sourceResourceType property: The governance rule source, what the rule affects, e.g.

String tenantId()

Get the tenantId property: The tenantId (GUID).

void validate()

Validates the instance.

GovernanceRuleInner withConditionSets(List<Object> conditionSets)

Set the conditionSets property: The governance rule conditionSets - see examples.

GovernanceRuleInner withDescription(String description)

Set the description property: Description of the governance rule.

GovernanceRuleInner withDisplayName(String displayName)

Set the displayName property: Display name of the governance rule.

GovernanceRuleInner withExcludedScopes(List<String> excludedScopes)

Set the excludedScopes property: Excluded scopes, filter out the descendants of the scope (on management scopes).

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.

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).

GovernanceRuleInner withIsDisabled(Boolean isDisabled)

Set the isDisabled property: Defines whether the rule is active/inactive.

GovernanceRuleInner withIsGracePeriod(Boolean isGracePeriod)

Set the isGracePeriod property: Defines whether there is a grace period on the governance rule.

GovernanceRuleInner withMetadata(GovernanceRuleMetadata metadata)

Set the metadata property: The governance rule metadata.

GovernanceRuleInner withOwnerSource(GovernanceRuleOwnerSource ownerSource)

Set the ownerSource property: The owner source for the governance rule - e.g.

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.

GovernanceRuleInner withRulePriority(Integer rulePriority)

Set the rulePriority property: The governance rule priority, priority to the lower number.

GovernanceRuleInner withRuleType(GovernanceRuleType ruleType)

Set the ruleType property: The rule type of the governance rule, defines the source of the rule e.g.

GovernanceRuleInner withSourceResourceType(GovernanceRuleSourceResourceType sourceResourceType)

Set the sourceResourceType property: The governance rule source, what the rule affects, e.g.

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 conditionSets()

Get the conditionSets property: The governance rule conditionSets - see examples.

Returns:

the conditionSets value.

description

public String description()

Get the description property: Description of the governance rule.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: Display name of the governance rule.

Returns:

the displayName value.

excludedScopes

public List excludedScopes()

Get the excludedScopes property: Excluded scopes, filter out the descendants of the scope (on management scopes).

Returns:

the excludedScopes value.

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.

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:

the includeMemberScopes value.

isDisabled

public Boolean isDisabled()

Get the isDisabled property: Defines whether the rule is active/inactive.

Returns:

the isDisabled value.

isGracePeriod

public Boolean isGracePeriod()

Get the isGracePeriod property: Defines whether there is a grace period on the governance rule.

Returns:

the isGracePeriod value.

metadata

public GovernanceRuleMetadata metadata()

Get the metadata property: The governance rule metadata.

Returns:

the metadata value.

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.

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.

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:

the rulePriority value.

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.

sourceResourceType

public GovernanceRuleSourceResourceType sourceResourceType()

Get the sourceResourceType property: The governance rule source, what the rule affects, e.g. Assessments.

Returns:

the sourceResourceType value.

tenantId

public String tenantId()

Get the tenantId property: The tenantId (GUID).

Returns:

the tenantId value.

validate

public void validate()

Validates the instance.

withConditionSets

public GovernanceRuleInner withConditionSets(List conditionSets)

Set the conditionSets property: The governance rule conditionSets - see examples.

Parameters:

conditionSets - the conditionSets value to set.

Returns:

the GovernanceRuleInner object itself.

withDescription

public GovernanceRuleInner withDescription(String description)

Set the description property: Description of the governance rule.

Parameters:

description - the description value to set.

Returns:

the GovernanceRuleInner object itself.

withDisplayName

public GovernanceRuleInner withDisplayName(String displayName)

Set the displayName property: Display name of the governance rule.

Parameters:

displayName - the displayName value to set.

Returns:

the GovernanceRuleInner object itself.

withExcludedScopes

public GovernanceRuleInner withExcludedScopes(List excludedScopes)

Set the excludedScopes property: Excluded scopes, filter out the descendants of the scope (on management scopes).

Parameters:

excludedScopes - the excludedScopes value to set.

Returns:

the GovernanceRuleInner object itself.

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:

governanceEmailNotification - the governanceEmailNotification value to set.

Returns:

the GovernanceRuleInner object itself.

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:

includeMemberScopes - the includeMemberScopes value to set.

Returns:

the GovernanceRuleInner object itself.

withIsDisabled

public GovernanceRuleInner withIsDisabled(Boolean isDisabled)

Set the isDisabled property: Defines whether the rule is active/inactive.

Parameters:

isDisabled - the isDisabled value to set.

Returns:

the GovernanceRuleInner object itself.

withIsGracePeriod

public GovernanceRuleInner 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 GovernanceRuleInner object itself.

withMetadata

public GovernanceRuleInner withMetadata(GovernanceRuleMetadata metadata)

Set the metadata property: The governance rule metadata.

Parameters:

metadata - the metadata value to set.

Returns:

the GovernanceRuleInner object itself.

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:

ownerSource - the ownerSource value to set.

Returns:

the GovernanceRuleInner object itself.

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:

remediationTimeframe - the remediationTimeframe value to set.

Returns:

the GovernanceRuleInner object itself.

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:

rulePriority - the rulePriority value to set.

Returns:

the GovernanceRuleInner object itself.

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:

ruleType - the ruleType value to set.

Returns:

the GovernanceRuleInner object itself.

withSourceResourceType

public GovernanceRuleInner 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 GovernanceRuleInner object itself.

Applies to