toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case PatchComplianceLevel.critical:
      return 'CRITICAL';
    case PatchComplianceLevel.high:
      return 'HIGH';
    case PatchComplianceLevel.medium:
      return 'MEDIUM';
    case PatchComplianceLevel.low:
      return 'LOW';
    case PatchComplianceLevel.informational:
      return 'INFORMATIONAL';
    case PatchComplianceLevel.unspecified:
      return 'UNSPECIFIED';
  }
}