toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case HealthCheckType.http:
      return 'HTTP';
    case HealthCheckType.https:
      return 'HTTPS';
    case HealthCheckType.httpStrMatch:
      return 'HTTP_STR_MATCH';
    case HealthCheckType.httpsStrMatch:
      return 'HTTPS_STR_MATCH';
    case HealthCheckType.tcp:
      return 'TCP';
    case HealthCheckType.calculated:
      return 'CALCULATED';
    case HealthCheckType.cloudwatchMetric:
      return 'CLOUDWATCH_METRIC';
  }
}