toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case PlacementGroupStrategy.spread:
      return 'SPREAD';
    case PlacementGroupStrategy.partition:
      return 'PARTITION';
    case PlacementGroupStrategy.cluster:
      return 'CLUSTER';
    case PlacementGroupStrategy.none:
      return 'NONE';
  }
}