toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case PolicyTypeValues.ebsSnapshotManagement:
      return 'EBS_SNAPSHOT_MANAGEMENT';
    case PolicyTypeValues.imageManagement:
      return 'IMAGE_MANAGEMENT';
    case PolicyTypeValues.eventBasedPolicy:
      return 'EVENT_BASED_POLICY';
  }
}