PolicyDefinition.DefinitionStages.WithPolicyRule Interface
public static interface PolicyDefinition.DefinitionStages.WithPolicyRule
A policy definition allowing the policy rule to be set.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
With |
withPolicyRule(Object policyRule)
Specifies the rule of the policy. |
abstract
With |
withPolicyRuleJson(String policyRuleJson)
Specifies the rule of the policy in JSON format. |
Method Details
withPolicyRule
public abstract PolicyDefinition.DefinitionStages.WithCreate withPolicyRule(Object policyRule)
Specifies the rule of the policy.
Parameters:
policyRule
- the rule object
Returns:
the next stage of policy definition
withPolicyRuleJson
public abstract PolicyDefinition.DefinitionStages.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
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.
Azure SDK for Java