toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ErrorCode.subnetNotFound:
      return 'SubnetNotFound';
    case ErrorCode.securityGroupNotFound:
      return 'SecurityGroupNotFound';
    case ErrorCode.eniLimitReached:
      return 'EniLimitReached';
    case ErrorCode.ipNotAvailable:
      return 'IpNotAvailable';
    case ErrorCode.accessDenied:
      return 'AccessDenied';
    case ErrorCode.operationNotPermitted:
      return 'OperationNotPermitted';
    case ErrorCode.vpcIdNotFound:
      return 'VpcIdNotFound';
    case ErrorCode.unknown:
      return 'Unknown';
    case ErrorCode.nodeCreationFailure:
      return 'NodeCreationFailure';
    case ErrorCode.podEvictionFailure:
      return 'PodEvictionFailure';
    case ErrorCode.insufficientFreeAddresses:
      return 'InsufficientFreeAddresses';
    case ErrorCode.clusterUnreachable:
      return 'ClusterUnreachable';
    case ErrorCode.insufficientNumberOfReplicas:
      return 'InsufficientNumberOfReplicas';
    case ErrorCode.configurationConflict:
      return 'ConfigurationConflict';
  }
}