PolicyAssignment.DefinitionStages.WithPolicyDefinition Interface
public static interface PolicyAssignment.DefinitionStages.WithPolicyDefinition
A policy assignment allowing the policy definition to be set.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
With |
withPolicyDefinition(PolicyDefinition policyDefinition)
Specifies the policy definition. |
abstract
With |
withPolicyDefinitionId(String policyDefinitionId)
Specifies the policy assignment. |
Method Details
withPolicyDefinition
public abstract PolicyAssignment.DefinitionStages.WithCreate withPolicyDefinition(PolicyDefinition policyDefinition)
Specifies the policy definition.
Parameters:
policyDefinition
- the policy definition
Returns:
the next stage of policy assignment
withPolicyDefinitionId
public abstract PolicyAssignment.DefinitionStages.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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java