toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case StateReasonCode.idle:
      return 'Idle';
    case StateReasonCode.creating:
      return 'Creating';
    case StateReasonCode.restoring:
      return 'Restoring';
    case StateReasonCode.eniLimitExceeded:
      return 'EniLimitExceeded';
    case StateReasonCode.insufficientRolePermissions:
      return 'InsufficientRolePermissions';
    case StateReasonCode.invalidConfiguration:
      return 'InvalidConfiguration';
    case StateReasonCode.internalError:
      return 'InternalError';
    case StateReasonCode.subnetOutOfIPAddresses:
      return 'SubnetOutOfIPAddresses';
    case StateReasonCode.invalidSubnet:
      return 'InvalidSubnet';
    case StateReasonCode.invalidSecurityGroup:
      return 'InvalidSecurityGroup';
    case StateReasonCode.imageDeleted:
      return 'ImageDeleted';
    case StateReasonCode.imageAccessDenied:
      return 'ImageAccessDenied';
    case StateReasonCode.invalidImage:
      return 'InvalidImage';
  }
}