toValue method

String toValue()

Implementation

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