PolicyAction Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. resources. models. PolicyAction
- com.
- com.
public final class PolicyAction
extends ExpandableStringEnum<PolicyAction>
The effective outcome of the policy evaluation based on both the policy effect and evaluation result. Possible values are Unknown, Allow, Audit, Deny, Error.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Policy |
ALLOW
The effective outcome of policy evaluation is to allow the request. |
|
static final
Policy |
AUDIT
The effective outcome of policy evaluation is to audit the request. |
|
static final
Policy |
DENY
The effective outcome of policy evaluation is to deny the request. |
|
static final
Policy |
ERROR
The policy evaluation resulted in an error. |
|
static final
Policy |
UNKNOWN
The effective outcome of policy evaluation is unknown. |
Constructor Summary
| Constructor | Description |
|---|---|
| PolicyAction() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Policy |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Policy |
fromString(String name)
Creates or finds a Policy |
|
static
Collection<Policy |
values()
Gets known Policy |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
ALLOW
public static final PolicyAction ALLOW
The effective outcome of policy evaluation is to allow the request.
AUDIT
public static final PolicyAction AUDIT
The effective outcome of policy evaluation is to audit the request.
DENY
public static final PolicyAction DENY
The effective outcome of policy evaluation is to deny the request.
ERROR
public static final PolicyAction ERROR
The policy evaluation resulted in an error.
UNKNOWN
public static final PolicyAction UNKNOWN
The effective outcome of policy evaluation is unknown.
Constructor Details
PolicyAction
@Deprecated
public PolicyAction()
Deprecated
Creates a new instance of PolicyAction value.
Method Details
fromString
public static PolicyAction fromString(String name)
Creates or finds a PolicyAction from its string representation.
Parameters:
Returns:
values
public static Collection<PolicyAction> values()
Gets known PolicyAction values.
Returns: