toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case HealthCheckProtocol.tcp:
      return 'TCP';
    case HealthCheckProtocol.http:
      return 'HTTP';
    case HealthCheckProtocol.https:
      return 'HTTPS';
  }
}