PolicyStatus Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. containerregistry. models. PolicyStatus
- com.
- com.
public final class PolicyStatus
extends ExpandableStringEnum<PolicyStatus>
The value that indicates whether the policy is enabled or not.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Policy |
DISABLED
Static value disabled for Policy |
static final
Policy |
ENABLED
Static value enabled for Policy |
Constructor Summary
Constructor | Description |
---|---|
PolicyStatus() |
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
DISABLED
public static final PolicyStatus DISABLED
Static value disabled for PolicyStatus.
ENABLED
public static final PolicyStatus ENABLED
Static value enabled for PolicyStatus.
Constructor Details
PolicyStatus
@Deprecated
public PolicyStatus()
Deprecated
Creates a new instance of PolicyStatus value.
Method Details
fromString
public static PolicyStatus fromString(String name)
Creates or finds a PolicyStatus from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known PolicyStatus values.
Returns:
Applies to
Azure SDK for Java