PolicyAssignment.DefinitionStages.WithPolicyDefinition Interface
public interface WithPolicyDefinition
A policy assignment allowing the policy definition to be set.
Method Summary
Modifier and Type | Method and Description |
---|---|
Policy |
withPolicyDefinition(PolicyDefinition policyDefinition)
Specifies the policy definition. |
Policy |
withPolicyDefinitionId(String policyDefinitionId)
Specifies the policy assignment. |
Method Details
withPolicyDefinition
public WithCreate withPolicyDefinition(PolicyDefinition policyDefinition)
Specifies the policy definition.
Parameters:
policyDefinition
- the policy definition
Returns:
the next stage of policy assignment
withPolicyDefinitionId
public WithCreate withPolicyDefinitionId(String policyDefinitionId)
Specifies the policy assignment.
Parameters:
policyDefinitionId
- the ID of the policy assignment
Returns:
the next stage of policy assignment
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