PolicyDefinition.DefinitionStages.WithPolicyRule Interface
public interface WithPolicyRule
A policy definition allowing the policy rule to be set.
Method Summary
Modifier and Type | Method and Description |
---|---|
Policy |
withPolicyRule(Object policyRule)
Specifies the rule of the policy. |
Policy |
withPolicyRuleJson(String policyRuleJson)
Specifies the rule of the policy in JSON format. |
Method Details
withPolicyRule
public WithCreate withPolicyRule(Object policyRule)
Specifies the rule of the policy.
Parameters:
policyRule
- the rule object
Returns:
the next stage of policy definition
withPolicyRuleJson
public WithCreate withPolicyRuleJson(String policyRuleJson)
Specifies the rule of the policy in JSON format.
Parameters:
policyRuleJson
- the rule object
Returns:
the next stage of policy definition
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java