toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DeploymentJobErrorCode.resourceNotFound:
      return 'ResourceNotFound';
    case DeploymentJobErrorCode.environmentSetupError:
      return 'EnvironmentSetupError';
    case DeploymentJobErrorCode.etagMismatch:
      return 'EtagMismatch';
    case DeploymentJobErrorCode.failureThresholdBreached:
      return 'FailureThresholdBreached';
    case DeploymentJobErrorCode.robotDeploymentAborted:
      return 'RobotDeploymentAborted';
    case DeploymentJobErrorCode.robotDeploymentNoResponse:
      return 'RobotDeploymentNoResponse';
    case DeploymentJobErrorCode.robotAgentConnectionTimeout:
      return 'RobotAgentConnectionTimeout';
    case DeploymentJobErrorCode.greengrassDeploymentFailed:
      return 'GreengrassDeploymentFailed';
    case DeploymentJobErrorCode.invalidGreengrassGroup:
      return 'InvalidGreengrassGroup';
    case DeploymentJobErrorCode.missingRobotArchitecture:
      return 'MissingRobotArchitecture';
    case DeploymentJobErrorCode.missingRobotApplicationArchitecture:
      return 'MissingRobotApplicationArchitecture';
    case DeploymentJobErrorCode.missingRobotDeploymentResource:
      return 'MissingRobotDeploymentResource';
    case DeploymentJobErrorCode.greengrassGroupVersionDoesNotExist:
      return 'GreengrassGroupVersionDoesNotExist';
    case DeploymentJobErrorCode.lambdaDeleted:
      return 'LambdaDeleted';
    case DeploymentJobErrorCode.extractingBundleFailure:
      return 'ExtractingBundleFailure';
    case DeploymentJobErrorCode.preLaunchFileFailure:
      return 'PreLaunchFileFailure';
    case DeploymentJobErrorCode.postLaunchFileFailure:
      return 'PostLaunchFileFailure';
    case DeploymentJobErrorCode.badPermissionError:
      return 'BadPermissionError';
    case DeploymentJobErrorCode.downloadConditionFailed:
      return 'DownloadConditionFailed';
    case DeploymentJobErrorCode.internalServerError:
      return 'InternalServerError';
  }
}