toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case NodegroupIssueCode.autoScalingGroupNotFound:
      return 'AutoScalingGroupNotFound';
    case NodegroupIssueCode.autoScalingGroupInvalidConfiguration:
      return 'AutoScalingGroupInvalidConfiguration';
    case NodegroupIssueCode.ec2SecurityGroupNotFound:
      return 'Ec2SecurityGroupNotFound';
    case NodegroupIssueCode.ec2SecurityGroupDeletionFailure:
      return 'Ec2SecurityGroupDeletionFailure';
    case NodegroupIssueCode.ec2LaunchTemplateNotFound:
      return 'Ec2LaunchTemplateNotFound';
    case NodegroupIssueCode.ec2LaunchTemplateVersionMismatch:
      return 'Ec2LaunchTemplateVersionMismatch';
    case NodegroupIssueCode.ec2SubnetNotFound:
      return 'Ec2SubnetNotFound';
    case NodegroupIssueCode.ec2SubnetInvalidConfiguration:
      return 'Ec2SubnetInvalidConfiguration';
    case NodegroupIssueCode.iamInstanceProfileNotFound:
      return 'IamInstanceProfileNotFound';
    case NodegroupIssueCode.iamLimitExceeded:
      return 'IamLimitExceeded';
    case NodegroupIssueCode.iamNodeRoleNotFound:
      return 'IamNodeRoleNotFound';
    case NodegroupIssueCode.nodeCreationFailure:
      return 'NodeCreationFailure';
    case NodegroupIssueCode.asgInstanceLaunchFailures:
      return 'AsgInstanceLaunchFailures';
    case NodegroupIssueCode.instanceLimitExceeded:
      return 'InstanceLimitExceeded';
    case NodegroupIssueCode.insufficientFreeAddresses:
      return 'InsufficientFreeAddresses';
    case NodegroupIssueCode.accessDenied:
      return 'AccessDenied';
    case NodegroupIssueCode.internalFailure:
      return 'InternalFailure';
    case NodegroupIssueCode.clusterUnreachable:
      return 'ClusterUnreachable';
  }
}