EnforcementMode Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. resources. models. EnforcementMode
- com.
- com.
public final class EnforcementMode
extends ExpandableStringEnum<EnforcementMode>
The policy assignment enforcement mode. Possible values are Default, DoNotEnforce, and Enroll.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Enforcement |
DEFAULT
The policy effect is enforced during resource creation or update. |
|
static final
Enforcement |
DO_NOT_ENFORCE
The policy effect is not enforced during resource creation or update. |
|
static final
Enforcement |
ENROLL
The policy effect is not enforced during resource creation or update until the resource or scope of the resource is enrolled to the assignment instance. |
Constructor Summary
| Constructor | Description |
|---|---|
| EnforcementMode() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Enforcement |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Enforcement |
fromString(String name)
Creates or finds a Enforcement |
|
static
Collection<Enforcement |
values()
Gets known Enforcement |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
DEFAULT
public static final EnforcementMode DEFAULT
The policy effect is enforced during resource creation or update.
DO_NOT_ENFORCE
public static final EnforcementMode DO_NOT_ENFORCE
The policy effect is not enforced during resource creation or update.
ENROLL
public static final EnforcementMode ENROLL
The policy effect is not enforced during resource creation or update until the resource or scope of the resource is enrolled to the assignment instance. Enrollment occurs upon deployment of the policy enrollment resource.
Constructor Details
EnforcementMode
@Deprecated
public EnforcementMode()
Deprecated
Creates a new instance of EnforcementMode value.
Method Details
fromString
public static EnforcementMode fromString(String name)
Creates or finds a EnforcementMode from its string representation.
Parameters:
Returns:
values
public static Collection<EnforcementMode> values()
Gets known EnforcementMode values.
Returns: