toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ResourceType.gpu:
      return 'GPU';
    case ResourceType.vcpu:
      return 'VCPU';
    case ResourceType.memory:
      return 'MEMORY';
  }
}